Using functions from other libraries in nimble code

69 views
Skip to first unread message

Daniel Jaebin Park

unread,
Sep 28, 2021, 4:22:31 PM9/28/21
to nimble-users
Hi, 

I had a question about using functions from other libraries in nimble code. In my use case, I have priors for some parameters, let's call them Theta. 

Given Theta, I want to use multiroot() from the rootSolve library where Theta are considered constants in a system of equations to solve for a vector of solutions, let's call them Sols. 

I then want to access Sols because one of its elements is the mean of the Normal likelihood of my response.

Thanks in advance for you consideration.

Daniel 

Chris Paciorek

unread,
Sep 28, 2021, 8:37:27 PM9/28/21
to Daniel Jaebin Park, nimble-users
Hi Daniel,

Please see `help(nimbleRcall)` for info on how to call out to an R function from within a nimbleFunction. If you need to use it within a model, you can set up a user-defined function (see Section 12.1 of the nimble manual) that uses nimbleRcall.

-chris

--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/827353b3-10dd-4564-aea1-4b7703a1b313n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages