gRfit {gRbase} | R Documentation |
Objects of class gRfit
are created when the function fit
is applied to a gModel
object. When adding new types of
gModel objects, one must also supply the appropritate fit
function. The gRfit
object contains the output of the fit which
can be accessed by getFit
. Separate print
and
summary
methods exist for gRfit
objects.
fit(m, engine) getFit(x)
m |
an object of class gModel |
engine |
a string with the possibility of implementing different
fitting engines for the same gModel s. |
x |
an object of class gRfit as created from fit
applied to a gModel object. |
fit
creates an object of class gRfit
.
getFit
returns the fit information created by the fitting
algorithm.
Søren Højsgaard, sorenh@agrsci.dk,
Claus Dethlefsen, aas.claus.dethlefsen@nja.dk
data(reinis) reinis <- as.gmData(reinis) m1 <- hllm(~.^. , reinis) m1 <- fit(m1,engine="loglm")