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

Curve Plotting Functions #9

Open
boyiguo1 opened this issue Aug 17, 2021 · 0 comments
Open

Curve Plotting Functions #9

boyiguo1 opened this issue Aug 17, 2021 · 0 comments
Labels
Development Forthcoming

Comments

@boyiguo1
Copy link
Owner

To develop the curve plotting functions

  1. Track if the variable name is in the set of variables names
    • If yes, pull all the relevant variables
    • If no, return an error message, "No variable found in the model predictor space. Please double check."
  2. Use a loop to create a graph for each of the variables of interest
    • retrieve the range of interested variable
    • create design matrix of the coefficient
    • calculate the risk ratio or linear predictor
    • make the plots
  3. Assemble the graphs

Parameters:

  • model, a object of bham
  • variable names, a vector of characteristic string including the variables of interest
  • plot, a logical variable indicating if a ggplot object are returned, or a list containing the ggplots
  • type, one of the two options "linear predictor scale", "outcome scale"
@boyiguo1 boyiguo1 added the Development Forthcoming label Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development Forthcoming
Projects
None yet
Development

No branches or pull requests

1 participant