- times1
A numeric vector with the observed times (in days) from baseline to the first transition (in X=2 or X=3) or to the right-censoring (in X=1 at the last follow-up).
- times2
A numeric vector with the observed times (in days) from baseline to the second transition (in X=3) or to the right censoring (in X=2 at the last follow-up). NA
for individuals right-censored in X=1 or individuals who directly transited from X=1 to X=3.
- sequences
A numeric vector with the sequences of observed states. Four possible values are allowed: 1 (individual right-censored in X=1), 12 (individual right-censored in X=2), 13 (individual who directly transited from X=1 to X=3), 123 (individual who transited from X=1 to X=3 through X=2).
- weights
A numeric vector with the weights for correcting the contribution of each individual. Default is NULL
which means that no weighting is applied.
- dist
A character vector with three arguments describing respectively the distributions of duration time for transitions 1->2, 1->3 and 2->3. Arguments allowed are "E"
for Exponential distribution, "PE"
for the piecewise exponential distribution, "W"
for Weibull distribution or "WG"
for Generalized Weibull distribution. When the user choose "PE"
, the arguments "cut.XX"
have also to be defined.
- cuts.12
A numeric vector indicating the timepoints in days for the piecewise exponential distribution related to the time from X=1 to X=2. Only internal timepoints are allowed: timepoints cannot be 0
or Inf
. Default is NULL
which means that the distribution is not piecewise. Piecewise model is only allowed for exponential distribution.
- cuts.13
A numeric vector indicating the timepoints in days for the piecewise exponential distribution related to the time from X=1 to X=3. Only internal timepoints are allowed: timepoints cannot be 0
or Inf
. Default is NULL
which means that the distribution is not piecewise. Piecewise model is only allowed for exponential distribution.
- cuts.23
A numeric vector indicating the timepoints in days for the piecewise exponential distribution related to the time from X=2 to X=3. Only internal timepoints are allowed: timepoints cannot be 0
or Inf
. Default is NULL
which means that the distribution is not piecewise. Piecewise model is only allowed for exponential distribution.
- ini.dist.12
A numeric vector of initial values for the distribution from X=1 to X=2. The logarithm of the parameters have to be declared. Default value is 1.
- ini.dist.13
A numeric vector of initial values for the distribution from X=1 to X=3. The logarithm of the parameters have to be declared. Default value is 1.
- ini.dist.23
A numeric vector of initial values for the distribution from X=2 to X=3. The logarithm of the parameters have to be declared. Default value is 1.
- cov.12
A matrix (or data frame) with the explicative time-fixed variable(s) related to the time from X=1 to X=2.
- init.cov.12
A numeric vector of initial values for regression coefficients (logarithm of the cause-specific hazards ratios) associated to cov.12
. Default initial value is 0.
- names.12
An optional character vector with name of explicative variables associated to cov.12
.
- cov.13
A numeric matrix (or data frame) with the explicative time-fixed variable(s) related to the time from X=1 to X=3.
- init.cov.13
A numeric vector of initial values for regression coefficients (logarithm of the cause-specific hazards ratios) associated to cov.13
. Default initial value is 0.
- names.13
An optional character vector with name of explicative variables associated to cov.13
.
- cov.23
A numeric matrix (or data frame) with the explicative time-fixed variable(s) related to the time from X=2 to X=3.
- init.cov.23
A numeric vector of initial values for regression coefficients (logarithm of the cause-specific hazards ratios) associated to cov.23
. Default initial value is 0.
- names.23
An optional character vector with name of explicative variables associated to cov.23
.
- conf.int
A logical value specifying if the pointwise confidence intervals for parameters and the variance-covariance matrix should be returned. Default is TRUE
.
- silent
A logical value specifying if the log-likelihood value should be returned at each iteration. Default is TRUE
, which corresponds to silent mode (no display).
- precision
A numeric positive value indicating the required precision for the log-likelihood maximization between each iteration. Default is \(10^{-6}\).