In my panel data (firm-year), I was able to calculate the row mean using
egen RowMean=rmean(Var1 Var2 Var3) if !missing(Var1) & !missing(Var2) & !missing(Var3)
How about the row median (at the firm-year level)?
Related Posts with Calculate row median
MCA rotationHello Stata friends! I am running MCA in stata and was checking the possibility of rotation after t…
Carryforward Code: * Example generated by -dataex-. To install: ssc install dataex clear input float…
Create indicator variables from multiple response string variableHi, I have a multiple response string variable, locnm_1, which lists the names of local sponsors of…
loop file with two dependent variablesHey there, I have problems with creating a loop on two dependent variables for my bond prices. For …
How to spread the reference's values to other observations at different yearsDear statalist, I have a dynamic panel for 20 years. However, data on one variable of interest is c…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate row median
Post a Comment