powered by
make draws of all observations with the same id in a panel data context. This is useful for bootstrapping with panel data.
blockBootSample(data, idname)
data.frame from which you want to bootstrap
column in data which contains an individual identifier
data.frame bootstrapped from the original dataset; this data.frame will contain new ids
# NOT RUN { data(LaborSupply, package="plm") bbs <- blockBootSample(LaborSupply, "id") nrow(bbs) head(bbs$id) # }
Run the code above in your browser using DataLab