log_lik_rf | R Documentation |
This function maximum likelihood estimate for σ^2, φ and ρ in the random field model for the covariance.
log_lik_rf(m_coef, m_coord)
m_coef |
Matrix where each column is an observed vector |
m_coord |
Matrix where each observation contains the latitude and longitude |
Return a list with
A vector with the estimates of σ^2, φ and ρ.
A matrix of covariances of the estimates.
data("datasetCanada") m_data <- as.matrix(datasetCanada$m_data) m_coord <- as.matrix(datasetCanada$m_coord[, 1:2]) p <- ceiling(1 + log2(nrow(m_data))) m_coef <- sapply(seq_len(nrow(m_coord)), function(i) { coef_fourier(m_data[, i], p) }) log_lik_rf(m_coef, m_coord)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.