Learn R Programming

genpwr (version 1.0.2)

ncp.search: Function to Determine Non-Centrality Parameter of the Chi-squared distribution

Description

This function is set to 0 and solved for x, the non-centrality parameter to determine the sample size in ss.calc

Usage

ncp.search(x, power, Alpha, df)

Arguments

x

the non-centrality parameter

power

the desired power

Alpha

the desired type 1 error rate

df

the degrees of freedom for the likelihood ratio test

Value

numeric value of the function

Examples

Run this code
# NOT RUN {
ncp.search(x = 7.848861, pow = 0.8, Alpha = 0.05, df=1)

# }

Run the code above in your browser using DataLab