Ncp: Estimate Non-Centrality Parameter

Description Usage Arguments Value Examples

Description

Estimates the non-centrality parameter of the chi-square distribution using a vector of p-values.

Usage

1
Ncp(p, df = 1, sig = 0.05, simple = F)

Arguments

p

Vector of p-values.

df

Degrees of freedom.

sig

Significance level for CI.

simple

If TRUE, returns estimated size and SE only.

Value

Matrix containing the estimated NCP, its standard error, the lower and upper confidence bounds, and a p-value assessing the null hypothesis the NCP is zero.

Examples

1
2
3
4
5
6
7
## Not run: 
# Uniform p-values
p = runif(n=1e3);
# Non-centrality parameter
Ncp(p=p,df=1);

## End(Not run)

zrmacc/SimTools documentation built on May 9, 2019, 8:08 a.m.