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

Function to sample from a Binomial Distribution #124

Closed
AndreasCalvagone opened this issue Sep 13, 2023 · 3 comments
Closed

Function to sample from a Binomial Distribution #124

AndreasCalvagone opened this issue Sep 13, 2023 · 3 comments
Assignees

Comments

@AndreasCalvagone
Copy link

Could we add a short-cut function to use the rbinom function when sampling a covariate?

And along these lines, how about a generic wrapper function for distributions, that, that takes as input the function name and a list of it arguments?

@mattfidler
Copy link

In rxode2 you can use rxbinom or ribinom

@mattfidler
Copy link

I think you can use Rcpp for mrgsolve though I am less familiar with that approach

@luyckxn
Copy link
Collaborator

luyckxn commented Sep 15, 2023

Good idea.
@AndreasCalvagone: There is already a wrapper that you can use, it is called 'FunctionDistribution' (see here: https://calvagone.github.io/campsis.doc/reference/FunctionDistribution.html)

@luyckxn luyckxn self-assigned this Oct 6, 2023
luyckxn added a commit that referenced this issue Oct 6, 2023
@luyckxn luyckxn closed this as completed Oct 6, 2023
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

3 participants