Is it possible to collapse the same variable in more than 1 way in 1 collapse command (e.g., to get both the minimum and the maximum)? I have tried using the basic command specifying (max) var1 (min) var1 and it returns an error code, but is there another way to do this/any new functionality to acheive this?
Related Posts with collapse variable in more than 1 way in one collapse command
How to recode data with multiple groupsHi Everyone,
I am fairly new to stata and I am looking at cancer data. I have histology groupings f…
a new variable based on two existing variablesHi,
I'm using SHARE dataset where there is a dummy variable for people having played chess/cards in…
Simple loop questionDear Listers,
I would like to ask you a very simple question regarding loop.
I want to make a vari…
Issues with Hausman-Wu testHi everyone,
I am having issues with running a Hausman-Wu test. The output is as follows:
"hausman…
dummy for panel dataHi,
how to create dummy variable for panel data? I want to create a dummy for 130 districts for 3 ye…
Subscribe to:
Post Comments (Atom)
0 Response to collapse variable in more than 1 way in one collapse command
Post a Comment