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!
0 Response to cluster 2 varlist not allowed
Post a Comment