probabilities: Caclulating initial state and transition probabilities

View source: R/7Step3Probabilities.r

probabilitiesR Documentation

Caclulating initial state and transition probabilities

Description

probabilities calculates initial state and transition probabilities for given covariate scores and time interval for the step3 estimates.

Usage

probabilities(
  model,
  deltaT = 1,
  initialCovariateScores = NULL,
  transitionCovariateScores = NULL,
  rounding = 2
)

Arguments

model

The model estimated with step3 (must be of class lmfa_step3).

deltaT

The interval for which the transition probabilities should be calculated (must be a single scalar).

initialCovariateScores

The covariate scores for which the probabilities should be calculated (must be a vector with a length equal to the number of covariates that were used for the estimation with step3). By default the values are set to the sample means of the covariates.

transitionCovariateScores

The covariate scores for which the probabilities should be calculated (must be a vector with a length equal to the number of covariates that were used for the estimation with step3). By default the values are set to the sample means of the covariates.

rounding

The number of decimals to which the results should be rounded (must be a single scalar).

Examples

## Not run: 
Probs <- probabilities(model, 
         deltaT = 1, 
         initialCovariateScores = NULL,
         transitionCovariateScores = NULL,
         rounding = 4
         )

## End(Not run)

LeonieVm/lmfa documentation built on Dec. 5, 2023, 1:38 p.m.