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
Set base group for 2 variables when including interaction terms in a regressionDear all, I am currently running a regression in Stata that involves an interaction term between ye…
Robustness checks - post regression graphhey stata friends and family, After I use rreg / mmregress / mregress, I want to create a scatter pl…
failing to rename a variable by its labelDear all, I am interested in renaming several variables by its label (see an example below), howeve…
Parallel trends assumption test for a two way fixed effect model (omitted treatment variable)Hi everyone, I want to test for the parallel trend assumption in the difference in differences. My …
Help for replacing parts of a string variableDear community, I want to clean a string variable that contains the name of a bank. Sometimes, it a…
Subscribe to:
Post Comments (Atom)
0 Response to anycount
Post a Comment