A researcher often has a set of diagnosands in mind to appropriately assess the quality of a design.
set_diagnosands sets the default diagnosands for a design, so that later readers can assess the design on the same terms as the original author. Readers can also use
diagnose_design to diagnose the design using any other set of diagnosands.
A design typically created using the + operator, or a simulations data.frame created by
A set of diagnosands created by
a design object with a diagnosand attribute
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
design <- declare_model(data = sleep) + declare_inquiry(mean_outcome = mean(extra)) + declare_sampling(S = complete_rs(N, n = 10), legacy = FALSE) + declare_estimator(extra ~ 1, inquiry = "mean_outcome", term = '(Intercept)', model = lm_robust) diagnosands <- declare_diagnosands( median_bias = median(estimate - inquiry)) design <- set_diagnosands(design, diagnosands) ## Not run: diagnose_design(design) simulations_df <- simulate_design(design) simulations_df <- set_diagnosands(simulations_df, design) diagnose_design(simulations_df) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.