bs_binomial_model: Sample Eta given B-splines individual-level model with...

View source: R/observation_models.R

bs_binomial_modelR Documentation

Sample Eta given B-splines individual-level model with binomial observations

Description

Eta is a matrix of individual-level parmaters for a B-spline with equivalent knots over all individuals

Usage

bs_binomial_model(observation_model_parameters, MegaLMM_state = list())

Arguments

observation_model_parameters

a list including: observations, a data.frame with columns: ID, N and covariate, ordered by ID. and the variables df, knots, degree and intercept. Empty values will use the defaults for bs().

Y

a vector of observation. Pre-scaled and centered if desired.

Details

This function should pre-calculate design matrices for each individual (assuming they are all unique)


deruncie/MegaLMM documentation built on June 10, 2025, 7:26 p.m.