Description Usage Arguments Value Author(s) See Also Examples
View source: R/betahatinference.R
Regression Coefficients Hypothesis Test and Confidence Intervals
1 | betahatinference(X, y)
|
X |
|
y |
Numeric vector of length |
Returns a matrix with the following columns
Coefficients.
Standard error.
t-statistic.
p-value.
Lower limit 99.99% confidence interval.
Lower limit 99% confidence interval.
Lower limit 95% confidence interval.
Upper limit 95% confidence interval.
Upper limit 99% confidence interval.
Upper limit 99.99% confidence interval.
Ivan Jacob Agaloos Pesigan
Other inference functions:
.betahatinference()
,
.slopeshatprimeinference()
,
slopeshatprimeinference()
1 2 3 4 5 6 7 8 9 10 11 | # Simple regression------------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
X <- X[, c(1, ncol(X))]
y <- jeksterslabRdatarepo::wages.matrix[["y"]]
betahatinference(X = X, y = y)
# Multiple regression----------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
# age is removed
X <- X[, -ncol(X)]
betahatinference(X = X, y = y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.