check_PEC_norm: Argument Check: Normal Model

View source: R/check_PEC_norm.R

check_PEC_normR Documentation

Argument Check: Normal Model

Description

Checks if the arguments of the PEC_norm() function are correctly specified.

Usage

check_PEC_norm(
  n,
  theta_1,
  n_1,
  theta_2,
  n_2,
  theta_D,
  n_D,
  sigma,
  v,
  plot
)

Arguments

n

The sample size.

theta_1, n_1

The parameters of the first normal prior.

theta_2, n_2

The parameters of the second normal prior.

theta_D, n_D

The parameters of the design normal prior.

sigma

A constant used to define the variance of the priors.

v

A constant used to determine the optimal sample size.

plot

Logical. Should a plot be displayed?

Value

An error message.

Note

This is an internal function.

Author(s)

Michele Cianfriglia michele.cianfriglia@uniroma1.it


michelecianfriglia/SampleSizeWass documentation built on Feb. 28, 2023, 8:56 a.m.