blockBootSample | R Documentation |
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 |
data.frame from which you want to bootstrap |
idname |
column in data which contains an individual identifier |
data.frame bootstrapped from the original dataset; this data.frame will contain new ids
data("LaborSupply", package = "plm")
bbs <- blockBootSample(LaborSupply, "id")
nrow(bbs)
head(bbs$id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.