Learn R Programming

hsstan (version 0.8.2)

fit.submodel: 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.