View source: R/splinewithsimultaneousconfint.R

Plots spline with confidence intervals

1 2 3 4 5 6 7 8 9 10 11 |

`outcome` |
Outcome variable shown in the y-axis. This should be convertible using |

`predictor` |
Predictor variable shown in the x-axis. This should be a numeric or date variable. |

`type` |
Regression link function used. Currently can be "Binary Logit" or "Linear". |

`subset` |
Optional logical vector of the same length as |

`weights` |
Optional numeric vector used as sampling weights. |

`seed` |
Random seed for reproducibility |

`number.draws` |
Number of possible trend lines to super-impose. |

`confidence` |
Width of confidence interval shown around the spline. |

`trim.padding` |
Logical; whether to remove padding around plotly chart. Default is set to false so that output is the same as old charts. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.