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
Mediation analysis with -medeff-: Can a continuous or discrete treatment used in medeff?Dear Statalist, Hello! I would like to conduct a mediation analysis with the help of -medeff- comma…
How to retrieve a specific value of a variable and calculate it with other values of variables?Hi Statalists, I'm currently want to let stata calculate P1 for each id and here is a formula: P1 =…
Stochastic Search and Optimization in StataDear all, I am having a panel data of some quality indicators say ind1 ind2 it's up to ind8 and som…
reshaping Code: * Example generated by -dataex-. To install: ssc install dataex clear…
Interpreting the coefficients using "one standard deviation"This regression measures the impact of the log change in competition (measured in # competitior bank…
Subscribe to:
Post Comments (Atom)
0 Response to collapse variable in more than 1 way in one collapse command
Post a Comment