@@ -21,9 +21,9 @@ library(rstan)
2121# file.path(getwd(), 'get_iter.hpp'), '"\n'),
2222# auto_write = T)
2323if (m == 1 ) {
24- sm = readRDS(" ../stan/zinb_deltaARCC_2SB .rds" )
24+ sm = readRDS(" ../stan/bebi_logit_deltaAR_2SB .rds" )
2525} else {
26- sm = readRDS( " ../stan/zinb_deltaARCClog_2SB.rds " )
26+ sm = 1
2727}
2828load(paste0(" ../data/pADHD_2SB/a" ,a ," _i" ,i ," .Rdata" ))
2929
@@ -36,18 +36,20 @@ sf = sampling(sm,
3636 iter = 750 ,
3737 warmup = 250 ,
3838 chain = 1 ,
39- init = list (list (scale = 1e-2 )),
4039 sample_file = sample_file ,
4140 control = list (max_treedepth = 20 )
4241)
4342
4443sroot = " /cluster/home/guidopb/programming/R/representativeness/IPW/samples/pADHD/"
44+
4545file.copy(sample_file ,
4646 paste0(sroot ,
47- " samples_m1_a " ,a ," _i" ,i ," _c" ,c ," _v9x_ " ,
48- ifelse(m == 1 ," lin " ," log " )," sb .csv" ),
47+ " bebi_a " ,a ," _i" ,i ," _c" ,c ," _ " ,
48+ ifelse(m == 1 ," logit " ," logit " )," .csv" ),
4949 overwrite = T )
5050
5151save(sf ,file = paste0(sroot ,
52- " samples_m1_a" ,a ," _i" ,i ," _c" ,c ," _v9x_" ,
53- ifelse(m == 1 ," lin" ," log" )," sb.Rdata" ))
52+ " bebi_a" ,a ," _i" ,i ," _c" ,c ," _" ,
53+ ifelse(m == 1 ," logit" ," logit" )," .Rdata" ))
54+
55+
0 commit comments