Dear all,
I have been using -stpm2 - to produce some amazing graphs. Never had an issue before with my code. However, more recently I applied these changes
1. Added more tvc covariates (see bold)
2. I slightly modified my dataset recoding treatment variable: -procedure- from 0 to 1 due to previous incorrect coding.
My code looks like this:
As mentioned, I never obtained this error before and had no issues, and produced wonderful graphs.
If this may help, my model without the -yearspl*- variable, works with no issues.
I am really frustrated, and perhaps desperate, as I have never had issues with this part of my code, and in fact, I was ready to start writing up !
I have been using -stpm2 - to produce some amazing graphs. Never had an issue before with my code. However, more recently I applied these changes
1. Added more tvc covariates (see bold)
2. I slightly modified my dataset recoding treatment variable: -procedure- from 0 to 1 due to previous incorrect coding.
My code looks like this:
Code:
stset survivalt [pw=attweight], failure(failure==1) rcsgen opyear, df(3) gen(yearspl) orthog range temptime 0 10 200 ///refit model with spline stpm2 procedure yearspl* age charlson gender provider, scale(h) df(5) eform tvc(procedure gender age charlson) dftvc(3) ERROR: FLAT REGION RESULTING IN A MISSING LIKELIHOOD. r(430)
If this may help, my model without the -yearspl*- variable, works with no issues.
Code:
stpm2 procedure age charlson gender provider, scale(h) df(5) eform tvc(procedure gender age charlson) dftvc(3)
Comment