| new_stats_dm | R Documentation |
new_stats_dm initializes a stats_dm object to label statistic types and
store necessary attributes for the custom methods (such as plot_*)
new_stats_dm(stat_df, type, ...)
stat_df |
a |
type |
a character string, specifying the type of statistic provided by
|
... |
Additional arguments passed to set attributes. For |
new_stats_dm sets up the stat_df object by assigning it the class
stats_dm, along with additional classes based on the specified type.
For "basic_stats", "cafs", "quantiles", "delta_funs", this will be
c(type, "sum_dist", "stats_dm", "data.frame")". For "fit_stats", this
will be c(type, "stats_dm", "data.frame")".
For basic stats, Conditional Accuracy Functions (CAFs), Quantiles, and
Delta Functions, the function requires a b_coding argument, which specifies
boundary coding details and is set as an attribute.
The function performs validation through validate_stats_dm to
ensure that the stats_dm object is well formatted.
An object of class stats_dm, with additional classes and attributes
depending on type.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.