Comments (2)
See help(msm)
section constraint
:
For categorical covariates, defined as factors, specify
constraints as follows:
'list(..., covnameVALUE1 = c(...), covnameVALUE2 = c(...),
...)'
where 'covname' is the name of the factor, and 'VALUE1',
'VALUE2', ... are the labels of the factor levels (usually
excluding the baseline, if using the default contrasts).
There was actually a bug in the error handling here - there was supposed to be a warning message like the following, but this was not being triggered. I've fixed that in the development version.
Error in msm.check.constraint(constraint, mm) :
Covariate "sex" in constraint statement not in model.
For factor covariates, specify constraints using covnameCOVVALUE = c(...)
from msm.
That works now.
Many thanks for this.
from msm.
Related Issues (20)
- Observations within subjects ... are not ordered by time HOT 2
- Question on MSM estimation with very few or no observations for a given transition HOT 2
- Integrate external optimisation results into msm object HOT 3
- Data format HOT 2
- Question about maximum likelihood of msm HOT 5
- Guidance Request on Addressing Transition Probability Estimation Issue in msm Package HOT 4
- multiple covariates HOT 7
- The question of msm HOT 5
- Implementing a semi-Markov model using 'msm' package HOT 5
- A question about very high total times using msm.totlos HOT 14
- Error in estimating transition intensities HOT 2
- Censored states in simfitted.msm HOT 1
- People with one observation shouldn't be dropped in hidden Markov models HOT 1
- Fitting simple healthy-ill-death model without recovery HOT 12
- prevalence.msm censtime question HOT 4
- Pearson goodness of fit tests fail for models with covariate interactions HOT 1
- Implementation of Markov polymorphism model with 5 states and 8 paths HOT 9
- How does MSM handle missing covariate data? HOT 1
- False convergence - Hessian is not positive definite HOT 5
- initial value in 'vmmin' is not finite HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msm.