fitsaemodel.control | R Documentation |
fitsaemodel
This function is used to define global settings and parameters that
are used by fitsaemodel()
.
fitsaemodel.control(niter = 40, iter = c(200, 200), acc = 1e-05,
dec = 0, decorr = 0, init = "default", k_Inf = 20000, ...)
niter |
|
iter |
|
acc |
|
dec |
|
decorr |
|
init |
|
k_Inf |
|
... |
additional arguments (not used). |
Changing the default values of the parameters may result in failure of convergence or loss of convergence speed.
A list with entries
niter
iter
acc
k_Inf
init
dec
decorr
add
fitsaemodel()
# use the landsat data
head(landsat)
# define the saemodel using the landsat data
model <- saemodel(formula = HACorn ~ PixelsCorn + PixelsSoybeans,
area = ~CountyName,
data = subset(landsat, subset = (outlier == FALSE)))
# summary of the model
summary(model)
# obtain the maximum likelihood estimates with, for instance, 'niter = 50'
# number of outer-loop iterations (by default: niter = 40). Here, we use
# 'niter = 50' for the sake of demonstration, not because it is needed.
fitsaemodel("ml", model, niter = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.