Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For bootstrap CIs, use estimated covariance matrix #5

Open
ghost opened this issue Apr 25, 2020 · 0 comments
Open

For bootstrap CIs, use estimated covariance matrix #5

ghost opened this issue Apr 25, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 25, 2020

The function Estimate_function_Stockholm_only_local outputs the Hessian matrix, which you convert to an estimated covariance matrix for the parameters on line 362 (referenced below). This information should be used when you simulate values for the parameters, as you do on lines 458-461, I think. You can draw simulations from a multivariate normal distribution using MASS::mvrnorm(n = 1000, mu = Est$par, Sigma = NeginvH2), for example.

NeginvH2 <- solve(1/(2*sigest^2)*H)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants