View source: R/plotting_functions.R
Visualize an ordinal fit by binning based on the x-values, calculating the probability of each m-value for each bin using the v-values, and plotting the fits.
1 2 3 4 5 6 7 8 9 10 | vis_ord_fit(
x,
v,
th_v,
mod_spec,
bin_bounds = c(),
xplot = c(),
th_v0 = c(),
...
)
|
x |
The vector of x values for the variable |
v |
The vector of response values for the variable |
th_v |
The fit parameter vector |
mod_spec |
The model specification |
xplot |
(optional) A vector at which to calculate the fit for the plot. If not provided, a sequence of equally spaced values of length hundred from min(x) to max(x) is used. |
th_v0 |
(optional) A baseline fit to add to the plot (likely the known value of the parameter vector from a simulation) |
... |
Additional arguments to pass to the plot call for the x-w scatter plot (e.g., to set the x- and y-labels). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.