Bookmark and Share

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

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

Re: st: parametric survival

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


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 "";, clear
streg protect age, d(weibull) anc(male)
lincom [ln_p]male- [ln_p]_cons  //female intercept
***************************CODE ENDS***************************


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

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

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
Thank you in advance ,

Farzaneh Amanpour
*   For searches and help try:

*   For searches and help try:

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