powered by
Build a simulated distribution for Chi-Square
Dist_SimuChisq(s,prob,b)
a matrix of frequencies for each simulated sample. Each row for each sample.
a vector of expected probability for each simulated sample.
the times of bootstrapping.
a vector of Chi-square statistics, length is the times of sampling.
This function build the distribution of Chi square statistics for simulated samples
# 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