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
Difference in Difference modeling. How to separate the treated group from the control group in the datasetHello, can anyone please help me on the command to differentiate my control group from treated group…
Remove axes from twoway with by()Hi, Any ideas on how to remove the x-axis from all panels in a twoway graph with the by-option? I h…
Merged dataset but converted date variables inaccurateHi I have two datasets, one is compustat data and the other is covenant violations (from Creditor C…
Multiple Tasks in a MacroI know how to write simpel code of a macro to complete one task: e.g. drop obervations whose var1 va…
Inclusion of Instrumental Variables in a fixed effects regression.Hi. I am currently looking into the influence of natural disasters on human capital outcomes, throug…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate row median
Post a Comment