Description Usage Arguments Author(s) Examples
Linear Regression
1 2 3 4 5 6 7 8 9 10 11 12  | 
X | 
 
  | 
y | 
 Numeric vector of length   | 
varnamesX | 
 Optional. Character vector of length   | 
varnamey | 
 Optional. Character string.
Variable name for vector   | 
qr | 
 Logical.
If   | 
sehatbetahattype | 
 Character string.
Standard errors for regression coefficients hypothesis test.
Options are   | 
sehatslopeshatprimetype | 
 Character string.
Standard errors for standardized regression slopes hypothesis test.
Options are   | 
adjust | 
 Logical.
If   | 
plot | 
 Logical. Display plots.  | 
print | 
 Logical. Display summary output.  | 
Ivan Jacob Agaloos Pesigan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  | # Simple regression------------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
X <- X[, c(1, ncol(X))]
y <- jeksterslabRdatarepo::wages.matrix[["y"]]
linreg(X = X, y = y)
# Multiple regression----------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
# age is removed
X <- X[, -ncol(X)]
linreg(X = X, y = y)
# Multiple regression----------------------------------------------
# delta standard errors for standardized coefficients
linreg(X = X, y = y, sehatslopeshatprimetype = "delta")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.