Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Descriptive statistics of scalars

    I have a panel data set. I ran the same regression for each individual (90 individuals) in the sample separately in order to estimate his/her level of risk aversion. I saved the estimated coefficients of risk aversion for each individual in the scalars riskid1, riskid2, ... , and riskid90 respectively. I am interested on doing descriptive statistics on these scalars like calculating the mean, median etc. Any idea how to do this?

  • #2
    Koula:
    why not considering -stastby-?
    The following toy-example run a fixed effect panel regression via -regress- and collect -idcode- coefficients via -statsby-:
    Code:
    use "https://www.stata-press.com/data/r17/nlswork.dta"
    statsby, by(idcode): regress ln_wage c.age##c.age i.year i.idcode if idcode<=10, vce(cluster idcode)
    sum _b_age
    Last edited by Carlo Lazzaro; 27 Apr 2022, 03:42.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      Thank you, it works perfectly!

      Comment

      Working...
      X