Dr. Walter Leite shows how to estimate the average treatment effect (ATE) of schools having full time security staff on the proportion of harsh punishment, using marginal mean weighting through stratification (MMSW). The example demonstrates how to calculate the weights from strata frequencies, evaluate covariate balance with the twang package, and estimate the treatment effect with bootstrap standard errors with the survey package of R. This example is from Chapter 4 of the book Practical Propensity Score Methods with R by Dr. Walter Leite. The R code and data for this video can be found at [ Ссылка ]
This video is part of the @practicalpropensityscore Channel.
Ещё видео!