lmScore: Compute score function for linear models.

View source: R/utils_lmnormal.R

lmScoreR Documentation

Compute score function for linear models.

Description

Compute score function for linear models.

Usage

lmScore(x, y, theta)

Arguments

x

a matrix with n rows and p columns containing the explanatory variables.

y

a numeric vector of length n containing the response variable.

theta

a numeric vector of length (p+1), containing MLE of parameters in a linear model.

Value

Score matrix with n rows and (p+1) columns.


gofedf documentation built on Oct. 1, 2023, 5:08 p.m.