Вычитание двух числовых переменных, возвращающих NA
#r Вопрос: set.seed(10003) Niter lt;- 5 null_diff lt;- vector(length=Niter) for (i in 1:Niter){ households$ControlPermute lt;- sample(households$voted[households$treatment=='Control'], size=180002, replace=T) null_avg_treated lt;- mean(households$ControlPermute[households$treatment=='Neighbors']) null_avg_control lt;- mean(households$ControlPermute[df$treatment=='Control']) null_diff[i] lt;- null_avg_treated - null_avg_control print(null_avg_treated)…