Dist_SimuChisq {mixIndependR}R Documentation

Build a simulated distribution for Chi-Square

Description

Build a simulated distribution for Chi-Square

Usage

Dist_SimuChisq(s,prob,b)

Arguments

s

a matrix of frequencies for each simulated sample. Each row for each sample.

prob

a vector of expected probability for each simulated sample.

b

the times of bootstrapping.

Details

This function build the distribution of Chi square statistics for simulated samples

Value

a vector of Chi-square statistics, length is the times of sampling.

Examples

require(mixIndependR)
h<-runif(10)
s<-Simulate_DistK(h,500,100)
Exp <- DistHetero(h)
Dist_SimuChisq(s,Exp$Density,10)

[Package mixIndependR version 1.0.0 Index]