#this script will make 100 estimates from 100 PODS simulated from batch file HU_IB_batchNEWpars_psi18_ne0.5_taumax0.75.txt, which is of the data configuration of Stone et al. data from 18 species pairs of parisitoid wasps codistributed across Iberian peninsula and Hungary # see 2012 Stone, G.N., K. Lohse, J. A. Nicholls, P. Fuentes-Utrilla, F. Sinclair, K. Schönrogge, G. Csóka, G. Melika, J-L. Nieves-Aldrey, J. Pujade-Villar, M. Tavakoli, R. R. Askew and M. J. Hickerson. Reconstructing Community Assembly in Time and Space Reveals Enemy Escape in a Western Palearctic Insect Community. Current Biology; 22: 532-537 #in this example, the tau-max value is 0.75, but it varies from 1.0 to 0.03 in Table 2 #the prior file (prior_IB_HUPARSnewPsi00_3Mill) contains 3 million draws from the prior given identical data configuration and priors except for tau-max which is 1.0. #!/bin/sh for (( i=1;i<100; i++)) do rm HUIBObs_psi18_ne0.5_taumax0.75_pods rm HUIBObsTAIL_psi18_ne0.5_taumax0.75 rm HUIBPosteriorSortHEADLESS_psi18_tol0.1_ne0.5_taumax0.75 perl msbayes.pl -r 1 -o HUIBObs_psi18_ne0.5_taumax0.75_pods -c HU_IB_batchNEWpars_psi18_ne0.5_taumax0.75.txt tail -1 HUIBObs_psi18_ne0.5_taumax0.75_pods > HUIBObsTAIL_psi18_ne0.5_taumax0.75 R --quiet --vanilla < HUIBObsTAIL_columnReduction_ne0.5_taumax0.75.r ./msReject HUIBObsTAIL_psi18_ne0.5_taumax0.75 prior_IB_HUPARSnewPsi00_3Mill 0.003 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 > HUIBPosteriorSortHEADLESS_psi18_tol0.1_ne0.5_taumax0.75 R --quiet --vanilla < HUIB_PODS_PARSnewPsi18_3M_HUIBPODStest_neuralnet_psi_omega_et_tol0.1_061512_ne0.5_taumax0.75.r date echo $i done