logLikMVR: logLikMVR

Description Usage Arguments Value Examples

View source: R/logLik.R

Description

Calculates the log likelihood of the classic multivariate regression model.

Usage

1
logLikMVR(lm_mod, n_adj = 0)

Arguments

lm_mod

a linear model fit using lm.

Value

log likelihood

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
y1 = seq(0.1,1,0.1)
y2 = y1*y1+1

Y = cbind(y1,y2)

x1 = log(1:10)
x2 = x1^2-x1
X = cbind(x1,x2)

logLikMVR(lm(Y~X))
logLikMVR(lm(Y~1))

mrparker909/mvregress documentation built on Dec. 27, 2019, 3:40 p.m.