Default logbin.smooth Plotting
Takes a fitted
logbin.smooth object produced by
logbin.smooth and plots
the component smooth functions that make it up,
for specified values of the other covariates.
1 2 3
the type of prediction required. Note that, unlike
a data frame containing the values at which the prediction should be evaluated. The columns
must contain the covariates in the model, and several rows may be provided (in which case, multiple
lines are drawn on the same plot). Cannot be missing or
logical; if vertical lines should be drawn on the plot to indicate the locations of the knots for B-spline terms.
the number of points which should be used to create the curve. These are placed evenly along the range of the observed covariate values from the original model.
other graphics parameters to pass on to plotting commands (note: some will not work).
For each smooth covariate in the model of
is used to obtain predicted values for the range of that covariate, with the other
covariates remaining fixed at their values given in
at. Several rows may be provided
at, in which case, one curve is drawn for each, and they are coloured using
rainbow(nrow(at)). If the model contains a single smooth covariate and no other
at may be provided as an empty data frame,
The function simply generates plots.
If this function is too restrictive, it may be easier to use
to get predictions for the dataset of your choice, and do the plotting manually.
Mark W. Donoghoe email@example.com
## For an example, see example(logbin.smooth)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.