NE: Natural estimates

Description Usage Arguments Value Note Examples

View source: R/NE.R

Description

NE(X, F, V) calculates natural estimates (NE) of variance parameters in general FDSLRM.

Usage

1
NE(X, F, V)

Arguments

X

time series realization.

F

design matrix for fixed effects.

V

design matrix for random effects.

Value

Natural estimates of variance parameters σ^2, σ_1^2, ..., σ_l^2.

Note

Ver.: 21-Jan-2019 20:40:07.

Examples

1
2
3
4
5
6
7
8
9
## EXAMPLE 1
times <- c(1:40)
freq_fixed <- c(1/24)
freq_rand <- c(1/8, 1/6)
matF <- makeF(times, freq_fixed)
matV <- makeV(times, freq_rand)
X <- rnorm(40, 2, 1.25)
ne <- NE(X, matF, matV)
print(ne)

gajdosandrej/fdslrm documentation built on April 28, 2020, 11:35 a.m.