Description Usage Arguments Value Examples
View source: R/fitted_cov_matrix.R
This function compute the covariancce matrix using the optimal parameters found by fitting the model, given two lists corresponding to the covariates used to model each element of the unconstrained parametrization
1 | fitted_cov_matrix(optimal_par, lista_phi, lista_d)
|
optimal_par |
The optimal parameters (MLE) fitted using the available data |
lista_phi |
The list containing the row of the matrices of covariates to model each |
lista_d |
The list containing the row of the matrices of covariates to model each |
Fitted covariance matrix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | lista_d <- list()
lista_phi <- list()
lista_d[[1]] <- 1
lista_d[[2]] <- 1
lista_d[[3]] <- c(1,rnorm(1))
lista_d[[4]] <- c(1,rnorm(2))
lista_phi[[1]] <- c(1,rnorm(2))
lista_phi[[2]] <- 1
lista_phi[[3]] <- 1
lista_phi[[4]] <- c(1,rnorm(1))
lista_phi[[5]] <- 1
lista_phi[[6]] <- c(1,rnorm(3))
optimal_par <- rnorm(19)
S <- fitted_cov_matrix(optimal_par,lista_phi,lista_d)
S
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.