conf_int_ols: Obtain a confidence interval using OLS

View source: R/conf_int_ols.R

conf_int_olsR Documentation

Obtain a confidence interval using OLS

Description

Obtain a confidence interval using OLS

Usage

conf_int_ols(X, y, cont, d = 0, a = 0.05)

Arguments

X

A design matrix

y

Values of the outputs

cont

Contrasts

d

Value of cont*beta under null hypothesis

a

Confidence level between 0 and 1

Value

A data frame with the estimate of cont*beta-d with lower and upper bounds of the confidence interval

Examples

G <- regssn2021
List <- XY_differences(G)
X <- List$X
y <- List$Y_diff
d <- length(List$teams)
cont <- c(0, rep(0,d))
conf_int_ols(X, y, cont, d = 0, a = 0.1)

przybylee/NFLpredictions documentation built on Feb. 9, 2025, 9:22 p.m.