Description Usage Arguments Value See Also Examples
View source: R/multiNorm-grad_l_mvn_generic.R
Calculates gradient vector of the log of the likelihood function of the multivariate normal distribution for the ith observation.
| 1 | grad_l_mvn_generic(x, mu, sigmacap)
 | 
| x | Numeric vector of length  | 
| mu | Numeric vector. Parameter. Mean vector \boldsymbol{μ}. | 
| sigmacap | Numeric matrix. Parameter. Covariance matrix \boldsymbol{Σ}. | 
A vector.
Other Multivariate Normal Distribution Functions: 
grad_l_mvn(),
hess_l_mvn_generic(),
hess_l_mvn(),
l_mvn_generic(),
l_mvn(),
mvn_theta_helper(),
negl_mvn(),
rmvn_chol()
| 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 | n <- 5
mu <- c(0, 0)
sigmacap <- matrix(
  data = c(
    1, 0.5, 0.5, 1
  ),
  nrow = 2
)
xcap <- as.data.frame(
  t(
    rmvn_chol(
      n = n,
      mu = mu,
      sigmacap = sigmacap
    )
  )
)
lapply(
  X = xcap,
  FUN = grad_l_mvn_generic,
  mu = mu,
  sigmacap = sigmacap
)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.