gibbsStepLi {skipTrack} | R Documentation |
Gibbs Step Li - One MCMC step for the Li Model
Description
Gibbs Step Li - One MCMC step for the Li Model
Usage
gibbsStepLi(ijDat, iDat, kappa, gamma, alpha, beta, S, indFirst)
Arguments
ijDat |
A data.frame with parameters at the individual-observation level: Individual, ys, lambdais, piis, ss. |
iDat |
A data.frame with parameters at the individual level: Individual, lambdas, pis. |
kappa |
Fixed value of hyperparameter kappa. |
gamma |
Fixed value of hyperparameter gamma. |
alpha |
Fixed value of hyperparameter alpha. |
beta |
Fixed value of hyperparamter beta. |
S |
Fixed input value S. |
indFirst |
A logical vector indicating the first occurrence of each individual. |
Value
A list containing one MCMC draws for each parameter. Elements are:
- ijDat
A data.frame with updated parameters at the individual-observation level: Individual, ys, lambdais, piis, ss.
- iDat
A data.frame with updated parameters at the individual level: Individual, lambdas, pis.
- kappa
Fixed value of hyperparameter kappa.
- gamma
Fixed value of hyperparameter gamma.
- alpha
Fixed value of hyperparameter alpha.
- beta
Fixed value of hyperparamter beta.
- S
Fixed input value S.
- indFirst
A logical vector indicating the first occurrence of each individual.
References
Li, Kathy, et al. "A predictive model for next cycle start date that accounts for adherence in menstrual self-tracking." Journal of the American Medical Informatics Association 29.1 (2022): 3-11.