fit.submodel: Compute the fit of a submodel

View source: R/projection.R

fit.submodelR Documentation

Compute the fit of a submodel

Description

Compute the fit of a submodel

Usage

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 June 22, 2024, 12:19 p.m.