SLOS {SLOS}R Documentation

SLOS function

Description

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).

Usage

SLOS(data)

Arguments

data

Data frame or matrix containing testing data

Value

Displays the funnel plot, returns the comparing plot as a ggplot object and the SLOS table.

Examples


# 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)



[Package SLOS version 1.0.1 Index]