Hello
To detect if the value of a numeric variable var_num changed within a group var_cat, I do this:
bysort var_cat: egen sd = sd(var_num)
replace sd = 1 if sd > 0 & sd != .
tab sd, m
Are there any command that execute this function? In the example, to create a variable like "sd"
Thanks
Related Posts with Variation within a group
Coefplot - color by level of significanceDear all,
Is there a way to color the confidence intervals in a coefplot so that it reflects the le…
How to dereference macros such as e(depvar), and macros which are already macros themselves, e.g., `macro' ?What are the rules for dereferencing macros such as e(depvar), and macros which are themselves alrea…
ppml with fixed effects and endogenous variablesDear Statalists,
I think I want to use some extensions of -ppml-, but my data is complicated and I’…
Robust Hausman Test for the Random and Fixed ModelHello everyone,
I am aware there is a community-contributed command -rhausman- for the Robust Hausm…
margins without standard erros & outreg2 (cmclogit)Hello!
While it's possible to store the results of the margins command (after cmclogit) with outreg…
Subscribe to:
Post Comments (Atom)
0 Response to Variation within a group
Post a Comment