conf_int_ols | R Documentation |
Obtain a confidence interval using OLS
conf_int_ols(X, y, cont, d = 0, a = 0.05)
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 |
A data frame with the estimate of cont*beta-d with lower and upper bounds of the confidence interval
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.