getncp: get non-centralized parameter

Description Usage Arguments Value

View source: R/getncp.R

Description

Return the value of non-centralized parameter for the chi-square distribution given type I, II error and degrees of freedom.

Usage

1
getncp(df, alpha = 0.05, beta = 0.2, d = 1e-04, start = 5)

Arguments

df

Degrees of freedom of chi-square test

alpha

Type I error rate of chi-square test. The default alpha=0.05

beta

Type II error rate of chi-square test. The default beta=0.20

d

Critical value of distance of the searching procedure. The search of non-centralized parameter value stops at the absolute distance between the actual power and the target power less than the value of d. The default value of d=0.0001

start

Initial value of searching the non-centralized parameter.

Value

The value of non-centralized parameter for the chi-square distribution


tonizhong/SMARTAR documentation built on Nov. 1, 2020, 2:40 p.m.