Hi,
Please see the code below
I am running bootstrap command with bca option with clustered data and there is a need to specify cluster(id) idcluster(xid)
Because I specify the option bca command it does seem that stata runs jacknife. When I looked at the jackknifeopts(), I am unclear whether I need to specify also the options cluster(id) idcluster(xid) within jackknifeopts(). When I do the following there is an error
Please could anyone help me with this?
Additionally, I tried to run the jacknife command directly and it does not seem to allow the options and produces error
However, if I run the command without any option, the command runs fine
Please could anyone clarify this?
Thanks
Andrew
Please see the code below
Code:
webuse pig, clear bootstrap, reps(20) bca ties mse cluster(id) idcluster(xid) jackknifeopts(): mixed weight week || id: week
Because I specify the option bca command it does seem that stata runs jacknife. When I looked at the jackknifeopts(), I am unclear whether I need to specify also the options cluster(id) idcluster(xid) within jackknifeopts(). When I do the following there is an error
Code:
webuse pig, clear bootstrap, reps(20) bca ties mse cluster(id) idcluster(xid) jackknifeopts(, cluster(id) idcluster(xid)): mixed weight week || id: week
Additionally, I tried to run the jacknife command directly and it does not seem to allow the options and produces error
Code:
jacknife eclass, cluster(id) idcluster(xid): mixed weight week || id: week jacknife rclass, cluster(id) idcluster(xid): mixed weight week || id: week
Code:
jacknife, cluster(id) idcluster(xid): mixed weight week || id: week
Thanks
Andrew
Comment