Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


psborrow2 (version 0.0.4.0)

Covariates-class: Covariate Class

Description

A class for defining covariate details. Objects of class Covariate should not be created directly but by the constructor add_covariates().

Arguments

Slots

covariates

character. Names of columns in the data matrix containing covariates to be adjusted for in the outcome model. Note: the external and treatment flags should not go here.

priors.

Either a single object of class Prior specifying the prior distribution to apply to all covariates or a named list of distributions of class Prior, one for each covariate

name_betas.

Names for the beta parameters in the STAN model.