# NOT RUN {
## ------------------------------------------------
## Method `module.lm$op`
## ------------------------------------------------
# }
# NOT RUN {
modello.init(10, 10, 10, 10)
X = number(as.matrix(rnorm(10)), dx=FALSE)
mdl = module.lm$new(1, 1, 1, b=FALSE)
print(X$v)
Yh = mdl$op(X)
print(Yh)
print(Yh$v)
modello.close()
# }
# NOT RUN {
## ------------------------------------------------
## Method `module.lm$obj`
## ------------------------------------------------
# }
# NOT RUN {
modello.init(10, 10, 10, 10)
X = number(as.matrix(rnorm(10)), dx=FALSE)
y = number(as.matrix(rnorm(10)), dx=FALSE)
mdl = module.lm$new(1, 1, 1, b=FALSE)
g = graph.open()
J = mdl$obj(y, X)
graph.close()
J$dv = 1
g$bw()
print(lapply(mdl$pars(), function(x)x$dv))
modello.close()
# }
# NOT RUN {
## ------------------------------------------------
## Method `module.lm$pars`
## ------------------------------------------------
# }
# NOT RUN {
modello.init(10, 10, 10, 10)
mdl = module.lm$new(1, 1, 1, b=FALSE)
print(mdl$pars())
print(lapply(mdl$pars(), function(x)x$v))
print(lapply(mdl$pars(), function(x)x$dv))
modello.close()
# }
Run the code above in your browser using DataLab