Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Calculating Percent Change In Regression Coeffecients


From   "Raphael Fraser" <raphael.fraser@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Calculating Percent Change In Regression Coeffecients
Date   Fri, 26 May 2006 18:23:21 -0500

I would like to calculate the percentage change in the regression
coeffecients of model 1 and model 2. Can any one help? I tried using
Mata but I did not know how to divide each element in a matrix with
different scalars.

sysuse auto, clear
stset mpg, failure(foreign)
stcox mpg price weight rep78, nohr nolog /*Model 1*/
stcox mpg weight rep78, nohr nolog /*Model 2*/

For example % change = (rep78_m2 - rep78_m1) / rep78_m1
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index