View source: R/02-Evaluation.R
SLOS | R Documentation |
This function is the core of the SLOS package. It generates the prediction for each unit, a funnel plot for the SLOS analysis and a plot comparing observed vs predicted SLOS. To access the funnel plot, run ems::plot(result$funnel_plot).
SLOS(data)
data |
Data frame or matrix containing testing data |
Displays the funnel plot, returns the comparing plot as a ggplot object and the SLOS table.
# Load example data
data(SampledData)
# Call the SLOS function on your data
result <- SLOS(sampled_data)
# Access the comparison plot
result$plot_SLOS_obv_prev
# Access the predictions for each unit
result$df_unit_slos
# The funnel plot will be displayed automatically, and you can access it again by calling
plot(result$funnel_plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.