Hello all,
I am trying to fit Weibull-PHM model using the streg command. The model outputs the value of the coefficient of the PHM model, beta and some constant but it didn't output the value of the scale parameter.
After going through the stata forum i came up with this command
nlcom (beta:exp([ln_p]_b[_cons])) (theta:exp(-_b[_cons])) but it returns combine beta and scale parameter but it should give the beta which will be same and theta which will depend on value of covariates Can somebody please help me with how can i get the value of scale parameter for different values a covairiate can take (let say my covariate X it takes X=0 X=1 X=2) so i want to find the vlaue of scale parameter for X=0 Theta1=? X=1 Theta2=? X=2 Theta3= ? Thanks in adavance. with regards, Akanksha
I am trying to fit Weibull-PHM model using the streg command. The model outputs the value of the coefficient of the PHM model, beta and some constant but it didn't output the value of the scale parameter.
After going through the stata forum i came up with this command
nlcom (beta:exp([ln_p]_b[_cons])) (theta:exp(-_b[_cons])) but it returns combine beta and scale parameter but it should give the beta which will be same and theta which will depend on value of covariates Can somebody please help me with how can i get the value of scale parameter for different values a covairiate can take (let say my covariate X it takes X=0 X=1 X=2) so i want to find the vlaue of scale parameter for X=0 Theta1=? X=1 Theta2=? X=2 Theta3= ? Thanks in adavance. with regards, Akanksha