Hi all,
Here is what I am hoping is an easy issue to solve. I want to use strmst2 to calculate restricted mean survival time, both unadjusted and adjusted.
The unadjusted command works fine:
strmst2 ccpvnon, tau(5) reference(0)
The command for adjusted RMST however, does not.
strmst2 ccpvnon, tau(5) reference(0) covariates(bmi)
Number of observations for analysis = 147
The truncation time: tau = 5 was specified.
Note: adjusted analysis may take a few minutes to run...
Model summary (difference of RMST)
----------------------------------------------------------------------------
| Coef. Std. Err. z P>|z| [95% Conf. Interval]
---------------+------------------------------------------------------------
intercept | type mismatch
r(109);
I'm not sure I understand why there is a type mismatch here? None of my variables is a string, all are numeric. Could it be that all of the numeric variables need to be similarly stored? Somare are byte, float, int, etc. I'm working in stata 16. I've uninstalled and re-installed strmst2 and tried the same commands in a prior version of this data set with the same issue.
Thanks!
Here is what I am hoping is an easy issue to solve. I want to use strmst2 to calculate restricted mean survival time, both unadjusted and adjusted.
The unadjusted command works fine:
strmst2 ccpvnon, tau(5) reference(0)
The command for adjusted RMST however, does not.
strmst2 ccpvnon, tau(5) reference(0) covariates(bmi)
Number of observations for analysis = 147
The truncation time: tau = 5 was specified.
Note: adjusted analysis may take a few minutes to run...
Model summary (difference of RMST)
----------------------------------------------------------------------------
| Coef. Std. Err. z P>|z| [95% Conf. Interval]
---------------+------------------------------------------------------------
intercept | type mismatch
r(109);
I'm not sure I understand why there is a type mismatch here? None of my variables is a string, all are numeric. Could it be that all of the numeric variables need to be similarly stored? Somare are byte, float, int, etc. I'm working in stata 16. I've uninstalled and re-installed strmst2 and tried the same commands in a prior version of this data set with the same issue.
Thanks!
Comment