Learn R Programming

IOLS (version 0.1.4)

print: print.iOLS

Description

Function that prints an iOLS fitted model object.

Usage

print(m, ...)

Value

a display of an iOLS fitted model object.

Arguments

m

An iOLS fitted model object.

...

other parameters.

Examples

Run this code
data(DATASET)
y = DATASET$y
x = as.matrix(DATASET[,c("X1","X2")])
lm = lm(log(y+1) ~ x)
lm_coef = c(coef(lm))
X = cbind(rep(1, nrow(x)), x)
tX = t(X)
library(matlib) ; VX = inv(tX %*% X)
f = iOLS(y, X, VX, tX, 20, b_init = lm_coef)
print(f)

Run the code above in your browser using DataLab