Learn R Programming

sgdGMF (version 1.0)

ols.fit.coef: Estimate the coefficients of a multivariate linear model

Description

Estimate the coefficients of a multivariate linear model via ordinary least squares.

Usage

ols.fit.coef(Y, X, offset = NULL)

Arguments

Y

\(n \times m\) matrix of response variables

X

\(n \times p\) matrix of covariates

offset

\(n \times m\) matrix of offset values