This function is a specialized version of 'replext_t4_c1.1', designed to replicate and extend the simulation results from Table 4 cell 5.1 of the paper by Dwivedi et al. (2017). It adjusts the default parameters to match the Cauchy distribution scenarios as described in this particular cell, facilitating both replication and extension of these results.
replext_t4_c5.1(
rdist = "rcauchy",
par1_1 = 5,
par2_1 = 2,
par1_2 = 10,
par2_2 = 4,
n1 = c(5, 5, 10),
n2 = c(5, 10, 10),
n_simulations = 10000,
nboot = 1000,
conf.level = 0.95
)A data frame with columns for each sample size pair (n1, n2) and the proportions of significant p-values for each test (ST, WT, NPBTT, WRST, PTTa, PTTe).
Distribution type, with the default set to 'rcauchy' (Cauchy). Other options include 'rlnorm' (lognormal), 'rpois' (Poisson), and 'rchisq' (Chi-squared).
First parameter (location) for the first group's distribution, default is 5.
Second parameter (scale) for the first group's distribution, default is 2.
First parameter (location) for the second group's distribution, default is 10.
Second parameter (scale) for the second group's distribution, default is 4.
Vector of sample sizes for the first group.
Vector of sample sizes for the second group, must be the same length as n1.
Number of simulations to run, default is 10,000.
Number of bootstrap samples, default is 1000.
Confidence level for calculating p-value thresholds, default is 0.95.
Dwivedi AK, Mallawaarachchi I, Alvarado LA. Analysis of small sample size studies using nonparametric bootstrap test with pooled resampling method. Stat Med. 2017 Jun 30;36(14):2187-2205. doi: 10.1002/sim.7263. Epub 2017 Mar 9. PMID: 28276584.
replext_t4_c5.1(n1 = c(10), n2 = c(10), n_simulations = 1)
Run the code above in your browser using DataLab