Learn R Programming

lame (version 1.3.4)

.xbeta_newdata: Name-safe linear predictor from a newdata prediction

Description

Convenience wrapper: builds the full canonical design via .build_full_design and contracts it against a named coefficient vector. Because the design is rebuilt in the model's slice order, the positional contraction is correct even with nodal covariates.

Usage

.xbeta_newdata(beta, newdata, fitted_design, n, m)

Value

an n x m matrix of the linear predictor.

Arguments

beta

named numeric coefficient vector (a single draw or the posterior mean).

newdata

dyadic covariate array (see .build_full_design).

fitted_design

fitted design array (fit$X); held-fixed source for intercept + nodal slices.

n, m

output dimensions.