Description Usage Arguments Author(s) See Also Examples
View source: R/betahatinference.R
Standardized Regression Slopes Hypothesis Test and Confidence Intervals
1 | slopeshatprimeinference(X, y, sehatslopeshatprimetype = "textbook")
|
X |
|
y |
Numeric vector of length |
sehatslopeshatprimetype |
Character string.
Standard errors for standardized regression slopes hypothesis test.
Options are |
Ivan Jacob Agaloos Pesigan
Other inference functions:
.betahatinference()
,
.slopeshatprimeinference()
,
betahatinference()
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"]]
slopeshatprimeinference(X = X, y = y)
# Multiple regression----------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
# age is removed
X <- X[, -ncol(X)]
slopeshatprimeinference(X = X, y = y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.