Simulate Experimental and Behavioural Data from a Portable Design Specification


[Up] [Top]

Documentation for package ‘pilotr’ version 0.3.0

Help Pages

pilotr-package pilotr: Simulate Experimental and Behavioural Data from a Portable Design Specification
as241 Inverse normal cumulative distribution function (Wichura's AS 241)
brms_bridge Derive a brms formula, family, and priors from a design spec
build_spec Build a design specification from a flat list of design inputs
calibrate_response Rescale a design to a target total variance
default_response_name Default response-column name for a family
design_conditions Build a grid of fixed-effect coefficient sets
generate_design_analysis Generate a Bayesian design-analysis script from a specification
generate_r_script Generate a self-contained, reproducible R script from a specification
load_spec Load a design specification from a JSON file
make_rng Create a shared cross-language random-number generator
model_data Build the modelling data frame from a simulated data set and its specification
model_formula Derive the lmer formula implied by a specification
pilotr pilotr: Simulate Experimental and Behavioural Data from a Portable Design Specification
pilotr_example Example design specifications shipped with pilotr
power_curve_mixed Power curve over sample size for a mixed-effects design
power_design Simulation-based power and design analysis for a two-group Gaussian design
power_mixed Simulation-based power and design analysis for a mixed-effects design
precision_curve Precision and ROPE curve over sample size
precision_design Precision and ROPE design analysis at a fixed sample size
print.pilotr_bridge Print a brms bridge
print.pilotr_power Print a simulation-based power result
replicate_seeds Seeds for the replicates of a Monte Carlo run
response_variance Variance components of the linear predictor
run_app Launch the pilotr no-code app
simulate_design Simulate a data set from a design specification
solve_curve Solve a simulated design curve for the value that meets a target
spec_from_model Build a design specification from a fitted mixed model
spec_json Serialise a design specification to pretty-printed JSON
sweep_spec Sweep an analysis over one field of a design specification
target_n Solve a power curve for the sample size that reaches a target power
validate_spec Validate a design specification