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

which.at.boundaryR Documentation

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

Author(s)

Stephanie Kovalchik s.a.kovalchik@gmail.com

Examples


data(ccdata)

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

which.at.boundary(fit)


blm documentation built on Sept. 12, 2022, 9:05 a.m.