- times
A numeric vector with the observed times in days from baseline to the last observation.
- sequences
A numeric vector with the sequence of observed states. Three possible values are allowed: 1 (the individual is right-censored in X=1), 12 (the individual transits to X=2) and 13 (the individual transits to X=3).
- weights
A numeric vector with the weights for correcting the contribution of each individual. When the vector is completed, the IPW estimator is implemented. Default is NULL
which means that no weighting is applied.
- dist
A character vector with two arguments describing respectively the distributions of duration time for transitions 1->2 and 1->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.
- 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.
- 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.p
A matrix (or data frame) with the explicative time-fixed variable(s) related to the probability P(X=2), which is regressing according to a logistic function.
- init.cov.p
A numeric vector of initial values for regression coefficients (logarithm of the cause-specific hazards ratios) associated to cov.p
. Default initial value is 0.
- names.p
An optional character vector with name of explicative variables associated to cov.p
.
- init.intercept.p
A numeric value to iniate the intercept of the logit of P(X=2). Default value is 0.
- 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}\).