FF: Components of a dlm object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Functions to get or set specific components of an object of class dlm

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
## S3 method for class 'dlm'
FF(x)
## S3 replacement method for class 'dlm'
FF(x) <- value
## S3 method for class 'dlm'
V(x)
## S3 replacement method for class 'dlm'
V(x) <- value
## S3 method for class 'dlm'
GG(x)
## S3 replacement method for class 'dlm'
GG(x) <- value
## S3 method for class 'dlm'
W(x)
## S3 replacement method for class 'dlm'
W(x) <- value
## S3 method for class 'dlm'
m0(x)
## S3 replacement method for class 'dlm'
m0(x) <- value
## S3 method for class 'dlm'
C0(x)
## S3 replacement method for class 'dlm'
C0(x) <- value
## S3 method for class 'dlm'
JFF(x)
## S3 replacement method for class 'dlm'
JFF(x) <- value
## S3 method for class 'dlm'
JV(x)
## S3 replacement method for class 'dlm'
JV(x) <- value
## S3 method for class 'dlm'
JGG(x)
## S3 replacement method for class 'dlm'
JGG(x) <- value
## S3 method for class 'dlm'
JW(x)
## S3 replacement method for class 'dlm'
JW(x) <- value
## S3 method for class 'dlm'
X(x)
## S3 replacement method for class 'dlm'
X(x) <- value

Arguments

x

an object of class dlm.

value

a numeric matrix (or vector for m0).

Details

Missing or infinite values are not allowed in value. The dimension of value must match the dimension of the current value of the specific component in x

Value

For the assignment forms, the updated dlm object.

For the other forms, the specific component of x.

Author(s)

Giovanni Petris GPetris@uark.edu

See Also

dlm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
set.seed(222)
mod <- dlmRandom(5, 6)
all.equal( FF(mod), mod$FF )
all.equal( V(mod), mod$V )
all.equal( GG(mod), mod$GG )
all.equal( W(mod), mod$W )
all.equal( m0(mod), mod$m0 )
all.equal( C0(mod), mod$C0)
m0(mod)
m0(mod) <- rnorm(6)
C0(mod)
C0(mod) <- rwishart(10, 6)
### A time-varying model
mod <- dlmModReg(matrix(rnorm(10), 5, 2))
JFF(mod)
X(mod)

Example output

[1] TRUE
[1] TRUE
[1] TRUE
[1] TRUE
[1] TRUE
[1] TRUE
[1] 0 0 0 0 0 0
     [,1] [,2] [,3] [,4] [,5] [,6]
[1,]  100    0    0    0    0    0
[2,]    0  100    0    0    0    0
[3,]    0    0  100    0    0    0
[4,]    0    0    0  100    0    0
[5,]    0    0    0    0  100    0
[6,]    0    0    0    0    0  100
     [,1] [,2] [,3]
[1,]    0    1    2
           [,1]      [,2]
[1,] -0.9568526 0.7847141
[2,] -1.9000846 0.3703478
[3,] -1.4897209 0.9327086
[4,]  0.5592568 0.3873468
[5,]  1.3506166 1.6666242

dlm documentation built on May 2, 2019, 4:58 p.m.