check_PPC_norm: Argument Check: Normal Model

View source: R/check_PPC_norm.R

check_PPC_normR Documentation

Argument Check: Normal Model

Description

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

Usage

check_PPC_norm(
  n,
  theta_1,
  n_1,
  theta_2,
  n_2,
  theta_D,
  n_D,
  sigma,
  xi,
  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.

xi

A constant used to compute the predictive probability.

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.