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
Position of y-axis scatterHi everyone, I want the y-axis to be on the left border of the graph, I tried this placement comman…
F testHi everyone, I have a simple question, what is the difference between the F-test that we find in the…
Combine Box PlotsI am conducting a study on climate vulnerability using an index as my proxy for vulnerability. In co…
Problem with using "Split code"Hello, This is my first time posting here so pardon me if my post didn't follow the forum format. I…
How can I modify the variable label of a table output?Hi everybody, I use table command to create a table, but I'm not satisfied with the table's output. …
Subscribe to:
Post Comments (Atom)
0 Response to Variation within a group
Post a Comment