Bootstrap a panel in Stata -
i want use stata command bootstrap block bootstrap estimation method includes group fixed effects. although user written command, i'll use areg y x, a(id1) in examples below.
more precisely, i'm wondering how compute
- simple standard erorrs
- standard errors clustered wrt
id1(individual in panel data setup) - standard errors clustered wrt
id2encompassesid1(class instead of individual in panel data setup) - standard errors clustered wrt
id3not encompassid1(time instead of individual in panel data setup)
i'm not sure understand options cluster, idcluster, , group , how interact. now, use
simple errors
bootstrap, areg y x, a(id1)error clustered wrt
id1bootstrap, cluster(id1) newcluster(newid1): areg y x, a(newid1)errors clustered wrt
id2encompassesid1bootstrap, cluster(id2) idcluster(newid2) group(id1): areg y x, a(id1)errors clustered wrt
id3not encompassid1bootstrap, cluster(id3): areg y x, a(id1)
is correct?
Comments
Post a Comment