1
$\begingroup$

Given data (as a vector) $y$, and a positive semi-definite matrix $W$ I would like to estimate $\mu$, $\tau$ and $\sigma$ via Maximum Likelihood in the following model:

$$y \sim N(\mu, \sigma I + \tau W). $$

Is there an off-the-shelf software solution for solving this problem in R?

$\endgroup$

1 Answer 1

0
$\begingroup$

I decided to just write my own implementation. I have packaged it as an R package called NVC (Normal Variance Components) which can be downloaded at https://github.com/jsilve24/NVC

Its written in C++ using RcppEigen for speed. Uses closed form gradients to allow optimization with L-BFGS wrapped in RcppNumerical. It's fairly fast and should be scalable for most problems. Also documented and includes unit-testing.

Hopefully, this should be helpful to others.

$\endgroup$
1
  • $\begingroup$ I am still interested if someone else has implemented this already in R. I find it strange if it wasn't already done. $\endgroup$
    – jds
    Commented Feb 7, 2019 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.