search for: ematrix

Displaying 2 results from an estimated 2 matches for "ematrix".

Did you mean: matrix
2012 Jan 19
0
state multi-state modeling using hidden markov routine in the msm package
Hello Chris, I am trying to fit a 4 state multi-state model using hidden markov routine in the msm package. 1. initial parameters: twoway4.q <- rbind(c(0, 0.25, 0, 0.25), c(0.166, 0, 0.166, 0.166), c(0, 0.25, 0, 0.25), c(0, 0, 0, 0)) ematrix <- rbind( c(0, 0.01, 0, 0), c(0.01, 0, 0.01,0), c(0, 0.1, 0, 0), c(0, 0, 0, 0)) 2. the model: msm_covariates_sexandage <- msm(state ~ duration, subject = SerialNo, data = Data, qmatrix = twoway4.q, ematrix = ematrix,death = 4, obstrue = firstobs, covariates = ~ sex + age, method = "B...
2004 Nov 05
0
R check passes code and docs that don't match
...'t flag it. in mspath.R mspath <- function(formula, # formula with observed Markov states ~ observation times (required) qmatrix, # matrix of 1s and 0s with indices of allowed transitions (diagonal is ignored) (required) misc = FALSE, ematrix = NULL, # matrix of 1s and 0s with indices of allowed misclassfications (diagonal is ignored) (required) inits, # initial values of optimisation or fixed values (required) subject = NULL, # optional, defaults to all the same if not given covar...