Description Usage Arguments Value Author(s) Examples
Simulates null distribution and returns simulation-based p-value.
1 | SimulateRegression(data, x, y, reps)
|
data |
Dataset in the form of a dataframe. |
x |
name of categorical explanatory variable, as a character string. |
y |
name of categorical response variable, as a character string. |
reps |
Number of simulations to perform |
Returns a histogram of the simulated null distribution. The red line indicates the observed statistic. The simulation-based p-value is also returned.
Andrew Sage
1 2 3 4 5 6 7 8 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x)
{
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.