View source: R/splinewithsimultaneousconfint.R
SplineWithSimultaneousConfIntervals | R Documentation |
Plots spline with confidence intervals
SplineWithSimultaneousConfIntervals(
outcome,
predictor,
type = "Binary Logit",
subset = NULL,
weights = NULL,
seed = 42,
number.draws = 30,
confidence = 0.95,
trim.padding = FALSE
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.