similar to: state multi-state modeling using hidden markov routine in the msm package

Displaying 20 results from an estimated 300 matches similar to: "state multi-state modeling using hidden markov routine in the msm package"

2004 Nov 05
0
R check passes code and docs that don't match
I have code and documentation that don't match, but R CMD check didn'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
2009 Sep 18
0
msm package - interpreting categorical results
Hi, I have a simple question on interpreting output results from your msm package in R when using a categorical model with hcovariates i.e. covariates on the parameters of the emission model. The interpretation is straightforward for normal distributions, etc. but when using categorical distributions I get results like these: prob P(1)
2009 Aug 03
1
MSM package and qmatrix
Hi R-helpers, I am having a problem understanding how to construct the qmatrix, i have read the help menu for msm but I am still a bit lost. Below is an example of one of my transition matrices: statetable.msm(BEH, ID, data = A1) to from 1 2 3 4 5 23 200 201 203 999 1 86 11 2 20 1 9 3 11 1 22 2 18 4 4 4 0 1 1 1 0 1 3 5 2 0 5 0 0 2 0 0 3
2005 Mar 09
0
msm version 0.5 released
A major update of the "msm" package for continuous-time Markov and hidden Markov multi-state models is now available from CRAN. Hidden Markov models with general, continuous response distributions are now supported. These models are used for Markov processes which can only be observed through the value of some noisy marker. Censored states are now supported at any observation time.
2005 Mar 09
0
msm version 0.5 released
A major update of the "msm" package for continuous-time Markov and hidden Markov multi-state models is now available from CRAN. Hidden Markov models with general, continuous response distributions are now supported. These models are used for Markov processes which can only be observed through the value of some noisy marker. Censored states are now supported at any observation time.
2006 Nov 13
0
question on MSM warning message
Hello After (simple random cluster) resampling with replacement I ran MSM function and I'm getting the following warning message ,which I'm not sure why. I don't have any absorbing stage set up in my MSM model. I have a 4 stage uni-directional MSM model. The only thing I see might be a problem is that when the last stage (stage 4 in my data) gets repeated it seems to give me a warning
2017 Jun 23
0
MODISTools Help
##MODISTools example library(MODISTools) library(lubridate) setwd('~/Documents/Modis data') #####MODISTools with buffalo data ###Read in data rename for easier coding tbdata <- read.csv('~/Desktop/All TB data for EVI, NDVI.csv') firstobs <- subset(tbdata, capture.ID == 'B1-1108') firstobs <- firstobs[,c(1,2,2,3,4)] colnames(firstobs) <- c('id',
2017 Jun 23
1
MODISTools Help
On 6/22/2017 7:05 PM, Caroline wrote: > ##MODISTools example > library(MODISTools) > library(lubridate) > setwd('~/Documents/Modis data') > > #####MODISTools with buffalo data > > ###Read in data rename for easier coding > tbdata <- read.csv('~/Desktop/All TB data for EVI, NDVI.csv') Since this dataset is only on your desktop it cannot help us
2012 Nov 05
1
relative convergence in 'optim'
Dear list, I have a question related to the correct interpretation of the relative convergence criterion used by 'optim'. In the help of the function is it written that: "reltol:Relative convergence tolerance. The algorithm stops if it is unable to reduce the value by a factor of reltol * (abs(val) + reltol) at a step." and I was wondering if the previous criterion is
2012 Mar 29
1
how to increase speed for function?/time efficiency of below function
i am using sarima() function as below ___________________________________________________________________________________________ sarima=function(data,p,d,q,P=0,D=0,Q=0,S=-1,tol=.001){ n=length(data) constant=1:n xmean=matrix(1,n,1) if (d>0 & D>0) fitit=arima(data, order=c(p,d,q), seasonal=list(order=c(P,D,Q), period=S),
2005 Dec 05
0
markov models with msm
Hello, I'm working with a dynamic system that I've started to analyse using msm(I've emailed to chris, orignator of the program, separately, but maybe he's on holiday). The data is obtained from a large cohort of students and consists of a model of learning states that students pass through over a period of one school year. As analyzed with the msm program, the data shows 'no
2009 Dec 18
1
Numerical Integration
Dear @ll. I have to calculate numerical integrals for triangular and trapezoidal figures. I know you can calculate the exactly, but I want to do it this way to learn how to proceed with more complicated shapes. The code I'm using is the following: integrand<-function(x) { print(x) if(x<fx[1]) return(0) if(x>=fx[1] && x<fx[2]) return((x-fx[1])/(fx[2]-fx[1]))
2007 Oct 13
1
R API - optim
I am trying to use the R API to call optim functions (nmmin, vmmin, lbfgsb, etc.) through a C program but I couldn't find the shared library to link under the R-2.6.0 build which is compiled under Linux (REL5). main.cpp:35: undefined reference to `Rf_initEmbeddedR(int, char**)' main.cpp:41: undefined reference to `nmmin' Thanks in advance for any help. ------------------------
2009 Nov 02
2
a prolem with constrOptim
Hi, I apologize for the long message but the problem I encountered can't be stated in a few lines. I am having some problems with the function constrOptim. My goal is to maximize the likelihood of product of K multinomials, each with four catagories under linear constraints on the parameter values. I have found that the function does not work for many data configurations. #The likelihood
2011 Sep 09
2
Different results with arima in R 2.12.2 and R 2.11.1
Hello , I have estimated the following model, a sarima: p=9 d=1 q=2 P=0 D=1 Q=1 S=12 In R 2.12.2 Call: arima(x = xdata, order = c(p, d, q), seasonal = list(order = c(P, D, Q), period = S), optim.control = list(reltol = tol)) Coefficients: ar1 ar2 ar3 ar4 ar5 ar6 ar7 ar8 ar9 0.3152 0.8762 -0.4413 0.0152 0.1500 0.0001 -0.0413 -0.1811
2007 Nov 13
1
FW: Reference category for explanatory factors
(Oops first mistake was posting to the wrong area) I am not sure what is needed to be posted in terms of what I have done but will explain nonetheless. I am using the msm.package and trying to specify my reference category for an outcome covariate. The following command line works: ## age of respondent - using year5a: categorical preg_fyear5a.msm<-msm(outcome~ipi, subject=id, data,
2011 Sep 12
1
Difference in function arima estimation between 2.11.1 and R 2.12.2
Hello , I have estimated the following model, a sarima: p=9 d=1 q=2 P=0 D=1 Q=1 S=12 In R 2.12.2 Call: arima(x = xdata, order = c(p, d, q), seasonal = list(order = c(P, D, Q), period = S), optim.control = list(reltol = tol)) Coefficients: ar1 ar2 ar3 ar4 ar5 ar6 ar7 ar8 ar9 0.3152 0.8762 -0.4413 0.0152 0.1500 0.0001 -0.0413 -0.1811
2010 May 21
0
weighted regression using drm() in drc package
Hi, I am currently trying to do dose-response curves using weighted 4-parameter model (4PL). The weighting was based on 1/(expected variance) derived from historical data. I tried both drm() from drc package, and nls(), found very different results derived from drm() vs. nls() using "weights=" argument. d1<-read.table("d1.txt",sep='\t',header=T,row.names=1)
2013 May 15
1
Problem with convergence in optim
Hello to all, I have been using an optim with the following call: optim(param_ini,fun_errores2,Precio_mercado=Precio,anos_pagosE2=anos_pagos,control=list(maxit=10000,reltol=1e-16)) depending on the intial values I'm getting the same solution but once I get the convergence message=10 (no convergence) and for the others I get convergence message = 0 Solution1: $par beta1
2006 Apr 13
1
bus error on calling nmmin
Hi, I'm trying to get a toy program making use of nmmin to run successfully. I've gotten to the point of compiling. However, when I attempt to run my executable, I guess a bus error. I see that someone else has asked about using nmmin before <http://tolstoy.newcastle.edu.au/R/help/06/03/23944.html>, but I haven't come across any replies. Is there some documentation on how to