-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for constructing target distribution from formula (#66)
* Add function for constructing target distribution from formula * Wrap trace function into target distribution arg * Ensure gradient a vector and add to NAMESPACE * Combine BridgeStan interface functions for constructing target distribution and trace function * Allow passing formula or Stan model directly to sample_chain * Use dummy variable declaration to avoid check note * Qualify deriv call with stats package name * Test target distribution from formula function * Use base::inherits in place of methods::is * Remove removed trace_function argument from sample_chain docs Clarify trace_function allowable output types * Test using invalid target distribution with sample_chain raises error * Test passing explicit trace function to sample_chain * Test using sample_chain with Stan model and log density formula works
- Loading branch information
1 parent
95acd2d
commit 7f87e4b
Showing
13 changed files
with
423 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.