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
Unicode analyze error - too big fileHi Guys! I am new in Stata and I have a problem with analyzing and translating dta file encodings by…
How to do calcuations between different datatypes (double, long, float)?Hello. I try to create some new ID-variables. Actually my datatype for pid/hid is "long". With MWE i…
Multiple imputation for correlated exposure variablesHello. I am trying to perform multiple imputation in my dataset using mi impute chained. The dataset…
Panel Data Analysis (Run desired regression)Dear Specialist First Thanks for your reading. I have a Panel Data set. I treated Region as id var…
Summary statistics tableHi, I want to summarize age, education, family_size and voters (average and standard deviation) by c…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate row median
Post a Comment