compute_statistics: Compute Power, Type I Error, or Precision Statistics

Description Usage Arguments

View source: R/pow_sim.r

Description

Compute Power, Type I Error, or Precision Statistics

Usage

1
2
3
4
5
6
7
compute_statistics(
  data,
  sim_args,
  power = TRUE,
  type_1_error = TRUE,
  precision = TRUE
)

Arguments

data

A list of model results generated by replicate_simulation function.

sim_args

A named list with special model formula syntax. See details and examples for more information. The named list may contain the following:

  • fixed: This is the fixed portion of the model (i.e. covariates)

  • random: This is the random portion of the model (i.e. random effects)

  • error: This is the error (i.e. residual term).

power

TRUE/FALSE flag indicating whether power should be computed. Defaults to TRUE.

type_1_error

TRUE/FALSE flag indicating whether type I error rate should be computed. Defaults to TRUE.

precision

TRUE/FALSE flag indicating whether precision should be computed. Defaults to TRUE.


simglm documentation built on Feb. 7, 2022, 9:08 a.m.