Learn R Programming

blm (version 2012.2.4)

displacement: Measures of confidence interval displacement of observations in a blm and lexpit model fit.

Description

Returns the confidence interval displacement of observations in a blm and lexpit model fit, which measures the influence of each observation on the regression estimates. Large values are suggestive of an influential point.

Arguments

Examples

Run this code
cohort <- data.frame(
	x1 = runif(100),
	x2 = runif(100)
)

cohort$event <- rbinom(n=nrow(cohort),size=1,
			prob=0.25+0.1*cohort$x1+.1*cohort$x2)

fit <- blm(event~x1+x2, data=cohort)

C <- displacement(fit)

# INDEX PLOT
plot(C)

Run the code above in your browser using DataLab