Skip to content

compute_roots for only some of the roots? #39

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

Open
BarkleyBG opened this issue Sep 9, 2017 · 6 comments
Open

compute_roots for only some of the roots? #39

BarkleyBG opened this issue Sep 9, 2017 · 6 comments

Comments

@BarkleyBG
Copy link
Contributor

I think there may be a situation where someone has, say,

  • GLM model (p=2 params)
  • another parameter (i.e. delta) to estimate that may be most easily handled with an equation solver.

For the model the easiest thing is to probably fit the model & pass it into geex. But for delta., you may want to use the root solver.
It may be nice in this case to allow for compute_roots = c(FALSE, FALSE, TRUE) so that the (p=2) model parameters are ignored in the solver, but the solver does solve for delta_hat.

This is a future-feature; nothing urgent. Your thoughts?

@bsaul
Copy link
Owner

bsaul commented Sep 15, 2017

This feature would really depend more on the root finding function than geex itself I think. It's this functionality built into rootSolve? To be honest, I've looked at the documentation that closely, but I have a vague recollection of this feature.

@BarkleyBG
Copy link
Contributor Author

BarkleyBG commented Sep 18, 2017 via email

@BarkleyBG
Copy link
Contributor Author

BarkleyBG commented Sep 18, 2017 via email

@bsaul
Copy link
Owner

bsaul commented Sep 18, 2017

On further reflection, I don't know if this is possible with multiroot or even in general. The issue: in order to find roots using Newton-Raphson, multiroot is computing the Jacobian of the G_m = sum(psi(theta)) function. If some element of theta is "fixed", then the root solver can't compute the derivative with respect to that element of theta. How might this affect finding root with respect to the non-fixed elements of theta?

@BarkleyBG
Copy link
Contributor Author

BarkleyBG commented Sep 18, 2017 via email

@bsaul
Copy link
Owner

bsaul commented Sep 18, 2017 via email

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

2 participants