print {IOLS} | R Documentation |
print.iOLS
Description
Function that prints an iOLS
fitted model object.
Usage
print(m, ...)
Arguments
m |
An |
... |
other parameters. |
Value
a display of an iOLS
fitted model object.
Examples
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)
[Package IOLS version 0.1.4 Index]