Learn R Programming

skpr (version 1.9.2)

Design of Experiments Suite: Generate and Evaluate Optimal Designs

Description

Generates and evaluates D, I, A, Alias, E, T, and G optimal designs. Supports generation and evaluation of blocked and split/split-split/.../N-split plot designs. Includes parametric and Monte Carlo power evaluation functions, and supports calculating power for censored responses. Provides a framework to evaluate power using functions provided in other packages or written by the user. Includes a Shiny graphical user interface that displays the underlying code used to create and evaluate the design to improve ease-of-use and make analyses more reproducible. For details, see Morgan-Wall et al. (2021) .

Copy Link

Version

Install

install.packages('skpr')

Monthly Downloads

6,184

Version

1.9.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tyler Morgan-Wall

Last Published

September 30th, 2025

Functions in skpr (1.9.2)

calculate_degrees_of_freedom

Calculate Degrees of Freedom
contr.simplex

Orthonormal Contrast Generator
calculate_block_nesting

Determine Nesting Level of Blocks
constructRunMatrix

Construct Run Matrix given rows
convert_blockcolumn_rownames

Convert Block Column to Rownames
calculate_power_curves

Calculate Power Curves
calculate_split_columns

Calculate Split Plot Columns
convert_rownames_to_covariance

Converts dot operator to terms
convhull_halfspace

Compute convex hull in half-space form
effectpower

Calculate Effect Power
disallowed_combinations

Detect and list disallowed combinations in candidate set
eval_design_custom_mc

Monte Carlo power evaluation for experimental designs with user-supplied libraries
eval_design_mc

Monte Carlo Power Evaluation for Experimental Designs
gen_binomial_anticoef

Generates Binomial Anticipated Coefficients
gen_anticoef

Generates Anticipated Coefficients
extractPvalues

Extract p-values from a model object
eval_design_survival_mc

Evaluate Power for Survival Design
create_code_pane_reactives

Create Code Pane Reactives
detect_disallowed_combinations

Detects disallowed combinations in candidate set
calculatepower

Calculate Power
calculate_v_from_blocks

Calculate V from Blocks
gen_exponential_anticoef

Generates Exponential Anticipated Coefficients
get_attribute

Get attribute values
gen_design

Generate optimal experimental designs
generate_factor_input_panel

Generate Factor Input Panel
gen_momentsmatrix_ideal

Generates the moment matrix, assuming no constraints
generate_optimality_results

Generate Optimality Results
generate_noise_block

Generate Noise Block
gen_momentsmatrix_constrained

Approximate continuous moment matrix over a numeric bounding box
genparammatrix

Generate Parameter Matrix
eval_design

Calculate Power of an Experimental Design
genhypmatrix

Generate Hypothesis Matrix
convert_model_dots

Converts dot operator to terms
effectpowermc

Fit Anova for Effect Power Calculation in Monte Carlo
get_optimality

Get optimality values
is_rendering_in_knitr

Determines if rendering in knitr
generate_block_panel

Generate Block Panel
parameterpower

Calculates parameter power
interpolate_convex_hull

Interpolate points within a convex hull
is_intralayer_interaction

Layer Interaction
plot_fds

Fraction of Design Space Plot
gen_poisson_anticoef

Generates Poisson Anticipated Coefficients
get_block_groups

Calculate block structure lengths
permutations

Permutations
potential_permuted_factors

Find potential permuted interactions
rearrange_formula_by_order

Rearrange formula by order
normalize_design

Normalize Design
%>%

re-export magrittr pipe operator
plot_correlations

Plots design diagnostics
get_moment_matrix

Gets or calculates the moment matrix, given a candidate set, a design, and a model
set_up_progressr_handler

Set up progressr handler
reduceRunMatrix

Remove columns not in model
run_documentation

Run Documentation
remove_skpr_blockcols

Remove skpr-generated blocking columns
get_power_curve_output

Get Power Curve Warnings and Errors
quad

quadratic
priorlevels

Prior levels
skprGUI

Graphical User Interface for skpr
print.skpr_eval_output

Print evaluation information
print.skpr_power_curve_output

Print evaluation information
add_ci_bounds_mc_power

Calculate CI bounds on Monte Carlo
anticoef_from_delta

Generates Anticipated Coefficients from delta
calc_conservative_anticoef

Calculate Conservative Anticipated Coefficients
calcnoncentralparam

Calculate Non-Centrality Parameter
blockingstructure

Find block sizes in column
aliasmodel

Alias terms
calcblocksizes

Calculate block sizes
anticoef_from_delta_surv

Generates Anticipated Coefficients from delta for eval_design_suvival_mc
calc_interaction_degrees

Calculate Interaction Degrees of Freedom
check_model_validity

Check Model Formula Validity
check_for_suggest_packages

check_for_suggest_packages
build_code_pane_html

Build Code Pane HTML
calculate_gefficiency

Calculate G Efficiency
calculate_level_vector

Calculate level vector