Description Usage Arguments Examples
buildClass
extends the class RS
to SM.dlm
and SM.HL
by adding the additional informations.
1 2 3 4 5 | buildClass(object, method, freq, ind, lagMax, verify, parallel)
## S4 method for signature 'RS,character'
buildClass(object, method, freq, ind, lagMax,
verify, parallel)
|
object |
An object of |
method |
An character value indicating the method to apply. Available method in this package are:
|
freq |
Object with type ANY.
|
ind |
R object with type ANY.
|
lagMax |
R object with type ANY. For dlm method, |
verify |
R object with type ANY. For dlm method, |
parallel |
R object with type ANY. For dlm method, |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | n <- 50
# An example to create the RS class.
my_first_class <- RS(sigb = rnorm(n, mean = 0, sd = 1),
epsb = rnorm(n, mean = 0, sd = 2),
epsp = rnorm(n, mean = 1, sd = 1))
# build class
## build dlm model
dlm_class <- buildClass(object = my_first_class,
method = "dlm", freq = 1,
ind = list(), lagMax = 3,
verify = TRUE, parallel = TRUE)
## build HL model
hl_class <- buildClass(object = my_first_class,
method = "HL", ind = 9.5)
### ind in this case is offset
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.