make_logistic: Construct a 'glm' object for logistic regression with...

View source: R/make.R

make_logisticR Documentation

Construct a 'glm' object for logistic regression with predefined coefficients

Description

It creates an object of class glm with family=binomial(link = "logit"), as one would obtain when fitting a logistic regression, but here there is no fit, one simply provides a design matrix and coefficients. This function is particularly useful in conjunction with simulation method from the ib package to simulate from this model.

Usage

make_logistic(x, coefficients)

Arguments

x

n x p design matrix (no intercept)

coefficients

p+1 vector of coefficients, the first coefficient is the intercept.

See Also

glm, simulation


samorso/IBpaper documentation built on April 29, 2022, 10:21 p.m.