Skip to contents

Not a user-side function. Do not invoke directly.

Usage

tar_jags_rep_data_batch(reps, batch, command)

Arguments

reps

Positive integer of length 1, number of reps to run.

batch

Positive integer of length 1, index of the current batch.

command

R code to run to generate one dataset.

Value

A list of JAGS datasets containing data and dataset IDs.

Examples

tar_jags_rep_data_batch(2, 1, tar_jags_example_data())
#> [[1]]
#> [[1]]$n
#> [1] 10
#> 
#> [[1]]$x
#>  [1] -1.0000000 -0.7777778 -0.5555556 -0.3333333 -0.1111111  0.1111111
#>  [7]  0.3333333  0.5555556  0.7777778  1.0000000
#> 
#> [[1]]$y
#>  [1] -1.8624114 -1.1858780 -2.1559287  0.1231455 -1.0782523 -0.8055015
#>  [7]  1.4449664  2.3451113 -0.1321133  0.7859858
#> 
#> [[1]]$.join_data
#> [[1]]$.join_data$beta
#> [1] 1.119918
#> 
#> 
#> [[1]]$.dataset_id
#> [1] "target_1"
#> 
#> [[1]]$.seed
#> [1] 1725770133
#> 
#> 
#> [[2]]
#> [[2]]$n
#> [1] 10
#> 
#> [[2]]$x
#>  [1] -1.0000000 -0.7777778 -0.5555556 -0.3333333 -0.1111111  0.1111111
#>  [7]  0.3333333  0.5555556  0.7777778  1.0000000
#> 
#> [[2]]$y
#>  [1] -0.34995231  0.69395629  0.01211559 -0.76912820  1.19567015  0.79065893
#>  [7]  0.13101036  0.90114131 -0.31153354  0.74501723
#> 
#> [[2]]$.join_data
#> [[2]]$.join_data$beta
#> [1] 0.9679472
#> 
#> 
#> [[2]]$.dataset_id
#> [1] "target_2"
#> 
#> [[2]]$.seed
#> [1] -1613816968
#> 
#>