SimulateF: Performs simulation-based hypothesis tests for F test...

Description Usage Arguments Value Author(s) Examples

View source: R/SBI.R

Description

Simulates null distribution and returns simulation-based p-value.

Usage

1
SimulateRegression(data, x, y, reps)

Arguments

data

Dataset in the form of a dataframe.

x

name of categorical explanatory variable, as a character string.

y

name of numeric response variable, as a character string.

reps

Number of simulations to perform

Value

Returns a histogram of the simulated null distribution. The red line indicates the observed statistic. The simulation-based p-value is also returned.

Author(s)

Andrew Sage

Examples

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)
{
  }

AndrewjSage/SBI documentation built on March 29, 2020, 4:22 a.m.