Friday, March 09, 2012

How to do a trend analysis in Stata

Tips - Stata: How to do a trend analysis in Stata

  • -nptrend- performs the nonparametric test for trend across ordered groups.
    .nptrend exposure, by(grp)
    also see How can I test for a trend across a categorical variable?
  • -vwls- estimates a linear regression using variance-weighted least squares.
    .vwls prev year,sd(se_prev)


No comments: