## ------------------------------------------------
## Method `Covariance$new`
## ------------------------------------------------
# \dontshow{
setParallel(FALSE) # for the CRAN check
# }
df <- nelder(~(cl(5)*t(5)) > ind(5))
cov <- Covariance$new(formula = ~(1|gr(cl)*ar0(t)),
parameters = c(0.05,0.7),
data= df)
## ------------------------------------------------
## Method `Covariance$check`
## ------------------------------------------------
# \dontshow{
setParallel(FALSE) # for the CRAN check
# }
df <- nelder(~(cl(5)*t(5)) > ind(5))
cov <- Covariance$new(formula = ~(1|gr(cl)*ar0(t)),
parameters = c(0.03,0.8),
data= df)
cov$parameters <- c(0.25,0.1)
cov$check(verbose=FALSE)
## ------------------------------------------------
## Method `Covariance$print`
## ------------------------------------------------
# \dontshow{
setParallel(FALSE) # for the CRAN check
# }
df <- nelder(~(cl(5)*t(5)) > ind(5))
Covariance$new(formula = ~(1|gr(cl)*ar0(t)),
parameters = c(0.05,0.8),
data= df)
## ------------------------------------------------
## Method `Covariance$subset`
## ------------------------------------------------
# \dontshow{
setParallel(FALSE) # for the CRAN check
# }
df <- nelder(~(cl(10)*t(5)) > ind(10))
cov <- Covariance$new(formula = ~(1|gr(cl)*ar0(t)),
parameters = c(0.05,0.8),
data= df)
cov$subset(1:100)
Run the code above in your browser using DataLab