Description Usage Arguments Details Value Examples
View source: R/testHostSwitch.R
Test for the significance of the difference between two difference of two HostSwitch objects
1 2 3 4 5 6 7 8  testHostSwitch(
simulated_quantities1,
simulated_quantities2,
parameter,
test,
warmup = NULL,
plot = FALSE
)

simulated_quantities1 
An object created by 
simulated_quantities2 
An object created by 
parameter 
Quantity of interest, possible values are:

test 
Statistical test, available tests are:

warmup 
Number of warmup steps to be excluded when comparing models, see details. Possible value are NULL (default) or positive integer (min=1,max=50). 
plot 
If TRUE, a boxplot is drawn. Default = FALSE. 
This function tests the significance of the difference between two objects generated by simHostSwitch function. Warmup represents the initial condition that we want to exclude from the test. The initial condition corresponds to the number of generations (n_generations): warmup = 1 means that the generation at time 0 is excluded from comparison; warmup = 2 means generations at times 0 and 1 are excluded and so on. If warmup = NULL all generations are considered for comparison, i.e. initial condition is not considered.
An object of class testHostSwitch
1 2 3 4  m1 = simHostSwitch(n_generations=100,n_sim=100)
m2 = simHostSwitch(n_generations=50,n_sim=50)
testHostSwitch(simulated_quantities1=m1,simulated_quantities2=m2,
parameter="j",test="t",plot=TRUE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.