Learn R Programming

mixIndependR (version 1.0.0)

Dist_SimuChisq: 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.

Value

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

Details

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

Examples

Run this code
# NOT RUN {
require(mixIndependR)
h<-runif(10)
s<-Simulate_DistK(h,500,100)
Exp <- DistHetero(h)
Dist_SimuChisq(s,Exp$Density,10)
# }

Run the code above in your browser using DataLab