XXXX.
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)The function returns an object of class fmsm as described in fmsmObject.
Model specification for the transition intensities of the first process.
Dataset of the first process.
Name of the variable in the dataset representing the unique code associated with each patient in the first process.
Name of the variable in the first process dataset representing the state occupied by the patient at the given time.
XXX.
Smoothing parameter for the first process.
XXX.
Model specification for the transition intensities of the second process.
Dataset of the second process.
Name of the variable in the dataset representing the unique code associated with each patient in the second process.
Name of the variable in the second process dataset representing the state occupied by the patient at the given time.
XXX.
Smoothing parameter for the second process.
XXX.
XXX.
Which method should be used for the computation of the transition probability matrix. Available options are
'eigendecomp' (default): this method is based on the eigendecomposition of the transition intensity matrix (from Kalbfleisch & Lawless 1985);
'analytic': uses analytic expressions of the transition probabilities, obtained by solving the Kolmogorov forward differential equation, only implemented for IDMs for now;
'scaling&squaring': this is the scaling and squaring method implemented as proposed in Fung (2004).This is inefficient, so its use is not recommended. Can be used to investigate convergence errors.
Whether or not data should be aggregated (this slightly improves efficiency as redundancies in the data are eliminated). The default is TRUE.
Method to be used for smoothing parameter estimation. The default is magic, the automatic multiple smoothing parameter selection algorithm. Alternatively, efs can be used for the Fellner-Schall method. To suppress the smoothing parameter estimation set this to NULL.
Maximum allowed iterations for smoothing parameter estimation.
If TRUE, diagnostics information on the Q matrix are saved. The default TRUE.
Maximum allowed iterations for trust region algorithm.
XXX.
Convergence criterion used in magic based smoothing parameter estimation.
Convergence criterion used in efs based smoothing parameter estimation.
If TRUE parallel computing is used during estimation. This can only be used by Windows users for now.
Number of cores used if parallel computing chosen. The default is 2. If NULL, all available cores are used.