Learn R Programming

blm (version 2013.2.4.4)

which.at.boundary: Covariate patterns at the boundary for blm and lexpit objects.

Description

Returns matrix of covariate types with a predicted probability at the lower or upper boundary defined by the specified criterion or NA if no boundary constraints are present.

Value

Returns all rows of design matrix whose predicted risk are less than or equal to criterion or greater than or equal to 1 - criterion.

usage

which.at.boundary (object, criterion = 1e-06)

arguments

object
model fit of class blm or lexpit
criterion
numeric distance from 0 (or 1) that is considered to be at the boundary

Examples

Run this code

data(ccdata)

fit <- blm(y~female+packyear,data = ccdata,
			weight = ccdata$w, strata = ccdata$strata)

which.at.boundary(fit)

Run the code above in your browser using DataLab