Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: parametric survival


From   Steven Samuels <[email protected]>
To   [email protected]
Subject   Re: st: parametric survival
Date   Fri, 1 Apr 2011 10:52:06 -0400

Farzaneh:

The only reason that I can think for doing this is that you want an intercept for each category of a categorical predictor.  If that's your issue, here's a solution.

**************************CODE BEGINS**************************
use "http://www.stata-press.com/data/r11/hip3";, clear
streg protect age, d(weibull) anc(male)
lincom [ln_p]male- [ln_p]_cons  //female intercept
***************************CODE ENDS***************************

Steve

Steven J. Samuels
Consultant in Statistics
18 Cantine's Island
Saugerties, NY 12477 USA
Voice: 845-246-0774
Fax:   206-202-4783 
[email protected]




On Apr 1, 2011, at 4:57 AM, Farzaneh Amanpour wrote:

Hi,
I am fitting the generalized gamma distribution to survival data.I
need all three parameters of generalized gamma to have linear
relationship with covariates without having the intercept.The command
"streg[varlist],dist(gamma) anc(varlist) anc2(varlist) noconstant"
only model the first parameter without intercept, and would not remove
the constant terms in two ancillary parameters. What can I do to
suppress the constant terms in two ancillary parameters('anc' and
'anc2')?
Thank you in advance ,

Farzaneh Amanpour
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index