# data from SchmidtRaju (2007, p. 303)
data_Schmidt_Raju <- '
1 60 .44
2 75 .20
3 85 .60
4 110 .32
5 50 .41
6 90 .25
7 100 .12
8 65 .35
9 80 .35
10 65 .19 '
data_Schmidt_Raju <- data.frame(read.table(text=data_Schmidt_Raju, fill=TRUE))
colnames(data_Schmidt_Raju) <- c('Study','N','r')
data_Schmidt_Raju <- data_Schmidt_Raju[,2:3]
nppOutput <- NO.PING.PONG(data_Schmidt_Raju, ES_type_IN='r', ES_type_OUT='r',
ma_method='REML',
Bayes_type = c('Schmidt_Raju', 'generated'),
prior_type='META', CI_level_in = 95,
ES = 'r', N = 'N', ES_var = NULL,
nitt=13000, burnin=3000, thin=10, verbose=TRUE)
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META','BAYES_SR','BAYES_GEN'))
# \donttest{
# Cannabis Psychosis data
nppOutput <- NO.PING.PONG(data_NPP$Cannabis_Psychosis, ES_type_IN='d', ma_method='REML',
Bayes_type = c('Schmidt_Raju', 'generated'), prior_type='META',
ES = 'Std_diff_in_mean', N = 'N', ES_var = NULL, #ES_var = 'Variance',
nitt=13000, burnin=3000, thin=10, verbose=TRUE)
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META'))
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META','BAYES_SR','BAYES_GEN'))
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META','BAYES_GEN','BAYES_RAW'))
# PopulationR.20 data (has raw data)
nppOutput <- NO.PING.PONG(data_NPP$PopulationR.20, ES_type_OUT='r',
rawdata_type = 'for_correl',
ma_method='REML',
Bayes_type = c('generated', 'Schmidt_Raju'),
prior_type='META', CI_level_in = 95,
ES = 'r', N = 'N', ES_var = NULL,
nitt=13000, burnin=3000, thin=10, verbose=TRUE)
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META','BAYES_GEN','BAYES_RAW'))
# raw data for paired samples
nppOutput <-
NO.PING.PONG(donnes=data_NPP$Paired_Samples,
rawdata_type = 'paired_samples',
ES_type_OUT = 'd',
paired_samples_ES_type = 'SMCRH')
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META'))
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META','BAYES_GEN'))
PLOT_NO.PING.PONG(nppOutput, plot_this = c('NHST','CUM_META','BAYES_GEN','BAYES_RAW'))
# }
Run the code above in your browser using DataLab