Learn R Programming

skpr (version 1.8.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

935

Version

1.8.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tyler Morgan-Wall

Last Published

April 25th, 2025

Functions in skpr (1.8.2)

calculate_gefficiency

Calculate G Efficiency
calculate_v_from_blocks

Calculate V from Blocks
check_for_suggest_packages

check_for_suggest_packages
calculate_level_vector

Calculate level vector
effectpowermc

Fit Anova for Effect Power Calculation in Monte Carlo
calculatepower

Calculate Power
convhull_halfspace

Compute convex hull in half-space form
detect_disallowed_combinations

Detects disallowed combinations in candidate set
convert_blockcolumn_rownames

Convert Block Column to Rownames
contr.simplex

Orthonormal Contrast Generator
disallowed_combinations

Detect and list disallowed combinations in candidate set
effectpower

Calculate Effect Power
eval_design

Calculate Power of an Experimental Design
eval_design_survival_mc

Evaluate Power for Survival Design
gen_anticoef

Generates Anticipated Coefficients
extractPvalues

Extract p-values from a model object
gen_binomial_anticoef

Generates Binomial Anticipated Coefficients
gen_momentsmatrix_constrained

Approximate continuous moment matrix over a numeric bounding box
gen_momentsmatrix_ideal

Generates the moment matrix, assuming no constraints
generate_noise_block

Generate Noise Block
gen_exponential_anticoef

Generates Exponential Anticipated Coefficients
get_moment_matrix

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

Generate Factor Input Panel
gen_design

Generate optimal experimental designs
calculate_power_curves

Calculate Power Curves
eval_design_mc

Monte Carlo Power Evaluation for Experimental Designs
genhypmatrix

Generate Hypothesis Matrix
convert_rownames_to_covariance

Converts dot operator to terms
normalize_design

Normalize Design
is_intralayer_interaction

Layer Interaction
genparammatrix

Generate Parameter Matrix
get_block_groups

Calculate block structure lengths
generate_optimality_results

Generate Optimality Results
eval_design_custom_mc

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

Get optimality values
get_attribute

Get attribute values
convert_model_dots

Converts dot operator to terms
is_rendering_in_knitr

Determines if rendering in knitr
interpolate_convex_hull

Interpolate points within a convex hull
gen_poisson_anticoef

Generates Poisson Anticipated Coefficients
%>%

re-export magrittr pipe operator
potential_permuted_factors

Find potential permuted interactions
plot_correlations

Plots design diagnostics
plot_fds

Fraction of Design Space Plot
generate_block_panel

Generate Block Panel
priorlevels

Prior levels
skprGUI

Graphical User Interface for skpr
print.skpr_power_curve_output

Print evaluation information
print.skpr_eval_output

Print evaluation information
set_up_progressr_handler

Set up progressr handler
get_power_curve_output

Get Power Curve Warnings and Errors
parameterpower

Calculates parameter power
run_documentation

Run Documentation
remove_skpr_blockcols

Remove skpr-generated blocking columns
permutations

Permutations
reduceRunMatrix

Remove columns not in model
rearrange_formula_by_order

Rearrange formula by order
quad

quadratic
anticoef_from_delta

Generates Anticipated Coefficients from delta
calc_interaction_degrees

Calculate Interaction Degrees of Freedom
calcblocksizes

Calculate block sizes
calcnoncentralparam

Calculate Non-Centrality Parameter
calc_conservative_anticoef

Calculate Conservative Anticipated Coefficients
constructRunMatrix

Construct Run Matrix given rows
aliasmodel

Alias terms
add_ci_bounds_mc_power

Calculate CI bounds on Monte Carlo
anticoef_from_delta_surv

Generates Anticipated Coefficients from delta for eval_design_suvival_mc
check_model_validity

Check Model Formula Validity
blockingstructure

Find block sizes in column
calculate_block_nesting

Determine Nesting Level of Blocks
calculate_degrees_of_freedom

Calculate Degrees of Freedom
calculate_split_columns

Calculate Split Plot Columns