traj: traj

Description Usage Arguments

View source: R/traj.R

Description

Estimate the single trajectory model using a Gibbs Sampler

Usage

1
2
traj(X, y, K, z, iterations, W = matrix(), thin = 1, dispIter = 10,
  ll = FALSE)

Arguments

X:

Matrix, design matrix. 1st column should be the id.

y:

Vector, outcomes

K:

Integer, number of latent classes

z:

Matrix, K x dim(X)[2] indicator matrix indicating which variables to include in each group.

iterations:

Integer, number of MCMC iterations

W:

Matrix, design matrix for group membership

thin:

Integer, store every 'thin' iteration

dispIter:

Integer, frequency of printing the iteration number

ll:

Boolean, Set to TRUE to display the maximum log-likelihood over all the draws.


jtm508/bayestraj documentation built on May 5, 2020, 12:48 p.m.