builders {brmsmargins}R Documentation

Build the Variable Names or Data Objects for Estimation

Description

These are a set of internal utility functions. They are not intended for general use.

Usage

.namesL(block, number)

.buildL(data, block, number, dpar)

.namesSD(ranef, block, dpar)

.buildSD(data, ranef, block, dpar)

.namesZ(block, number, dpar)

.buildZ(data, block, number, dpar)

Arguments

block

Which random effect block to use. An integer.

number

The number of elements in that random effect block. An integer.

data

A data object. For example the result of make_standata() for .buildZ(), which is a list, or a dataset of the posterior draws such as from as_draws_df() for .buildL() and .buildSD().

dpar

Which dpar to use. Does not apply to the L matrix.

ranef

A data set with information about the model object random effects. Only used for .namesSD and .buildSD.

Details

Value

A character vector for all .names functions or a matrix for all .build functions.


[Package brmsmargins version 0.2.0 Index]