fit.submodel: Compute the fit of a submodel

Description Usage Arguments

View source: R/projection.R

Description

Compute the fit of a submodel

Usage

1
fit.submodel(x, sigma2, mu, chosen, xt, yt, logistic)

Arguments

x

Design matrix.

sigma2

Residual variance (1 for logistic regression).

mu

Matrix of fitted values for the full model.

chosen

Vector of indices of the columns of x in the current submodel.

xt

Design matrix for test data.

yt

Outcome variable for test data.

logistic

Set to TRUE for a logistic regression model.


hsstan documentation built on July 8, 2020, 6:46 p.m.