Description Usage Arguments Value Examples
View source: R/Other.Regression.R
computes an n by p+1 matrix containing the components of the score function in a linear regression of y on the n x p covariate matrix x. The ith row of the output corresponds to the ith data point.
1 | score.normal.regression(y, x, theta.hat)
|
y |
the univariate response |
x |
the design matrix |
theta.hat |
MLEs of parameters |
Column 1 of the output is the sigma component of the score. Columns 2 to p+1 are the components of the score corresponding to the regression coefficients.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.