Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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 11:03:42 -0400

Sorry, I got the intercepts mixed up.   Here's the correct version.

**************************CODE BEGINS**************************
use "";, clear
streg protect age, d(weibull) anc(male)
// [ln_p]_cons is female intercept
lincom [ln_p]male +[ln_p]_cons  //male intercept
***************************CODE ENDS***************************


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.


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–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index