Learn R Programming

blm (version 1.2)

ci: Compute confidence interval for linear combination of estimates from a blm and lexpit fit.

Description

Computes a confidence interval for the specified linear combination of the regression coefficients of a blm or lexpit model.

Arguments

Examples

Run this code
data(birthwt)

# ADDITIVE MODEL FOR LOW BIRTHWEIGHT
# ESTIMATE RISK DIFFERENCE ASSOCIATED WITH MOTHER'S SMOKING STATUS AND AGE

fit <- blm(low~smoke+I(scale(age)),data=birthwt)

# ESTIMATE RISK DIFFERENCE ASSOCIATED WITH SMOKING

ci(fit,c(0,1,0))

Run the code above in your browser using DataLab