Skip to contents

This class extends the general LongitudinalModel class for using the random slope linear model for the longitudinal outcome.

Usage

LongitudinalRandomSlope(
  intercept = prior_normal(30, 10),
  slope_mu = prior_normal(1, 3),
  slope_sigma = prior_lognormal(0, 1.5),
  sigma = prior_lognormal(0, 1.5)
)

Arguments

intercept

(Prior)
for the intercept.

slope_mu

(Prior)
for the population slope slope_mu.

slope_sigma

(Prior)
for the random slope standard deviation slope_sigma.

sigma

(Prior)
for the variance of the longitudinal values sigma.