
Last chance! 50% off unlimited learning
Sale ends in
This function simulates a number of bivariate data sets in which there are replicates at each level of the predictor. The p-values for ANOVA and for the regression slope are compared.
simulateLinear(sd=2, npoints=5, nrep=4, nsets=200, type="xy", seed=21)
The error standard deviation
Number of distinct predictor levels
Number of replications at each level
Number of simulation runs
Type of data
Random Number generator seed
The proportion of regression p-values that are less than the ANOVA p-values is printed
# NOT RUN {
simulateLinear()
# }
Run the code above in your browser using DataLab