boots_g | R Documentation |
Performs a simple bootstrap of a fitted DirectEffects model by re-estimating the model with bootstrap samples.
boots_g(seqg, boots = 1000)
seqg |
A fitted sequential_g estimate, computed by |
boots |
The number of bootstrap replicates. Defaults to 1000. |
An object of type seqgboots
which is a matrix with boots
rows and columns for each coefficient in the seqg
model. Use summary
to provide summary statistics, such as mean and quantiles.
data(ploughs)
s1 <- sequential_g(women_politics ~ plow +
agricultural_suitability + tropical_climate + large_animals + rugged |
years_civil_conflict + years_interstate_conflict + oil_pc +
european_descent + communist_dummy + polity2_2000 |
centered_ln_inc + centered_ln_incsq, ploughs)
out.boots <- boots_g(s1, boots = 100)
summary(out.boots)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.