powered by
Compute score function for linear models.
lmScore(x, y, theta)
Score matrix with n rows and (p+1) columns.
a matrix with n rows and p columns containing the explanatory variables.
a numeric vector of length n containing the response variable.
a numeric vector of length (p+1), containing MLE of parameters in a linear model.