Displaying 1 result from an estimated 1 matches for "msfit".
Did you mean:
lsfit
2011 Sep 17
0
Warning in 'probtrans'-function ('mstate'-package)
...;cloned' data for making predictions: specific covariate 'v3' fixed
at 0 (& 1):
SLV0 <- SLV[1:3,]
SLV0$v3.1 <- 0
SLV0$v3.2 <- 0
SLV0$v3.3 <- 0
SLV0$strata <- 1:3
SLV1 <- SLV0
SLV1$v3.1 <- 1
SLV1$v3.2 <- 1
SLV1$v3.3 <- 1
# estimate...
msf.0 <- msfit(cox1, SLV0, trans=tmat)
pt.0 <- probtrans(msf.0, predt=0)
# [..output:]
# Warning message:
# In probtrans(msf.0, predt = 0) :
# Warning! Negative diagonal elements of (I+dA); the estimate may not
be meaningful.
msf.1 <- msfit(cox1, SLV1, trans=tmat)
pt.1 <- probtrans(...