fMmsm {flexmsm} | R Documentation |
Flexible transition intensity based models for two dependant multistate processes
Description
XXXX.
Usage
fMmsm(formula1, data1, id1, state1,
params1 = NULL, spP1 = NULL, constraint1 = NULL,
formula2, data2, id2, state2,
params2 = NULL, spP2 = NULL, constraint2 = NULL,
phi = NULL,
pmethod = 'eigendecomp',
aggregate = TRUE, sp.method = 'perf', iterlimsp = 50,
Q.diagnostics = TRUE, iterlim = 100, verbose,
tolsp = 1e-7, tolsp.EFS = 0.1, parallel = FALSE, no_cores = 2)
Arguments
formula1 |
Model specification for the transition intensities of the first process. |
data1 |
Dataset of the first process. |
id1 |
Name of the variable in the dataset representing the unique code associated with each patient in the first process. |
state1 |
Name of the variable in the first process dataset representing the state occupied by the patient at the given time. |
params1 |
XXX. |
spP1 |
Smoothing parameter for the first process. |
constraint1 |
XXX. |
formula2 |
Model specification for the transition intensities of the second process. |
data2 |
Dataset of the second process. |
id2 |
Name of the variable in the dataset representing the unique code associated with each patient in the second process. |
state2 |
Name of the variable in the second process dataset representing the state occupied by the patient at the given time. |
params2 |
XXX. |
spP2 |
Smoothing parameter for the second process. |
constraint2 |
XXX. |
phi |
XXX. |
pmethod |
Which method should be used for the computation of the transition probability matrix. Available options are
|
aggregate |
Whether or not data should be aggregated (this slightly improves efficiency as redundancies in the data are eliminated). The default is |
sp.method |
Method to be used for smoothing parameter estimation. The default is |
iterlimsp |
Maximum allowed iterations for smoothing parameter estimation. |
Q.diagnostics |
If |
iterlim |
Maximum allowed iterations for trust region algorithm. |
verbose |
XXX. |
tolsp |
Convergence criterion used in |
tolsp.EFS |
Convergence criterion used in |
parallel |
If |
no_cores |
Number of cores used if parallel computing chosen. The default is 2. If |
Value
The function returns an object of class fmsm
as described in fmsmObject
.