Hi, I'm replicating a report, and this is the attached do-file
use wintertime_final, clear
gen snodas_weighted=snodas_max+(.25+.125*west)*(fsnoda s_max-snodas_max)
xi i.wk i.sn
cluster2 resort wk2 _I*, tcluster(d) fcluster(sn)
outreg2 using table2, replace excel dec(3) keep(wk2)
cluster2 resort wk2 _I* if snodas_max~=., tcluster(d) fcluster(sn)
outreg2 using table2, excel dec(3) keep(wk2)
cluster2 resort wk2 snodas_max _I*, tcluster(d) fcluster(sn)
outreg2 using table2, excel dec(3) keep(wk2 snodas_max)
cluster2 resort wk2 snodas_weighted _I*, tcluster(d) fcluster(sn)
outreg2 using table2, excel dec(3) keep(wk2 snodas_weighted)
cluster2 resort wk2 fsnodas_max snodas_max lsnodas_max _I*, tcluster(d) fcluster(sn)
outreg2 using table2, excel dec(3) keep(wk2 fsnodas_max snodas_max lsnodas_max)
But I cannot use cluster 2 (I installed cluster2.ado), each time I run the data, it shows "varlist not allowed",
Can anyone help me in this one?
Thank you!
Related Posts with cluster 2 varlist not allowed
how to destring a variable containing some observations in a range?I have a variable wage. The wage variable has some observations in range, such as 400-500, 1200-1300…
Creating categorical variableHello, I have a panel data set with a variable that measures how many children women have. I would …
Mixed-effects linear models confounder interaction with timeDear Statalist, In the repeated-measures mixed-effects linear models, the fixed effects often inclu…
merging datasetshi guys, would anyone please be able to explain to me how to combine two datasets, one of which is a…
conditionally check if 2 column clusters have no missing valuesHi, I have a dataset below that has 6 columns . I would like to check if [ not missing in any of th…
Subscribe to:
Post Comments (Atom)
0 Response to cluster 2 varlist not allowed
Post a Comment