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
Program Graph: Allowing for Varying Number of VariablesDear Statalisters, I would like to write a program that automatically plots the means of variables …
total dose per day with multiple dates and times Code: * Example generated by -dataex-. To install: ssc install dataex clear input int(date_daily_3…
Joint modelling of binary longitudinal outcomes in using random effects approachHi everyone, I would like to jointly model two binary repeated outcomes in STATA using the random ef…
Why is Stata calculating percentiles in the way it does, and who has said that this is the way to calculate percentiles?The definition of a percentile I have been taught, is (1) Q(p) = F^(-1)(p) = inf{x: F(x)>=p}, 0&…
Negative lower confidence interval boundary for variance with nlcom after a multilevel logistic regressionHello, I am conducting a multilevel logistic regression to identify determinants of the availabilit…
Subscribe to:
Post Comments (Atom)
0 Response to cluster 2 varlist not allowed
Post a Comment