Dear all
I would like to count the number of values across 5 numeric variables. I tried using "anycount", but there is a wide range of values for me to list all of them in the option statement and the syntax wont allow me to specify range:
2 syntaxes I tried below:
egen sum_xy = anycount (x y z v w), value (1,2,3,4......1000)
egen sum_xy = anycount (x y z v w), value (1-1000)
Related Posts with anycount
Fixed or Random Effect Model in Cross -Sectional dataDear All, I have a query regarding the fixed or random effect model in cross-sectional data (One ob…
Looping over many variables to create new variable "if any" ==0Dear Statalist: I am struggling with something that I know should be easy. My data is in long form, …
Imposing nonlinear constraint in moptimize()I am trying to find the coefficients of a system of linear regression equations defined as y = b*X +…
Undo for "save" commandDear all, Are there any ways to cancel the "save" command in STATA 17? I preserved data on the memo…
correlation analysisHi, For small study/hypothesis generating work sometimes it is recommended to do correlation analys…
Subscribe to:
Post Comments (Atom)
0 Response to anycount
Post a Comment