predict_mmrr: Calculate predictions (marginal expectations)

Description Usage Arguments Value

View source: R/moments.R

Description

Calculate predictions (marginal expectations)

Usage

1
predict_mmrr(X, Beta, sigma, type, num_nodes = 15)

Arguments

X

An nr x p matrix of predictors. The first r elements are predictors for the r responses in the first independent response vector, and so on.

Beta

A p-vector of latent regression coefficients

sigma

An r-vector of standard deviations for the responses, i.e. sqrt(diag(Sigma)).

type

An r-vector indicating response types: 1 means normal, 2 means Bernoulli, and 3 means Poisson.

num_nodes

Number of nodes to use in Gaussian quadrature used to calculate predictions

Value

An n x r matrix of predicted (fitted) values


koekvall/lvmmr documentation built on Dec. 13, 2021, 2:35 p.m.