-
Notifications
You must be signed in to change notification settings - Fork 0
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 iterate over categorical variable values and make new data sets #36
Comments
Hey @atredennick, just wondering if you had any scripts or illustrations of doing some of what you're asking for? We could definitely do something like that, but will talk to some other TS folks to see where something like this should live |
Not sure if this is super helpful out of context, but here is what I cobbled together recently:
Followed by this function:
|
@atredennick thanks so much for putting that together! Seth proposed the idea of making a PR on the example project, to show how it could look there first. If you're able to do that let me know! |
Sounds good! Will do. (Might take a few days). |
Hey @atredennick, just wanted to check back in to see if you had any status updates? |
Actually, for a recent project, Todd has developed some functions for this. |
@atredennick Is this internal function sufficient, or do you think a package function would still be ideal? Would love to look at it if it can be ported over easily! |
Not sure if this is too "inside baseball" to be relevant to a wider community. Also not sure if the best place for this is pmforest or yspec. For making forest plots, we generally are simulating from a fitted model given new data sets where one variable is changed per iteration. A function that takes in a
spec
and vector of variables, scans all possible values, and generates new datasets for reference and univariate perturbations would be extremely helpful.The text was updated successfully, but these errors were encountered: