building_model: Build the jags model code

Description Usage Arguments Value Examples

View source: R/building_model.R

Description

Based on data, this function build the jags model that will be used by runjages

Usage

1

Arguments

mydata

a list data returned by prepare_data

Value

a string corresponding to the jags model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#importing data
data(signature_data)
data(prior_diet_matrix)
data(LOQ)
data(prior_signature_data)
prior_delta <- data.frame(tracer=c("X15N","X13C"),mean=c(3,0),sd=c(1,1))

#check that everything is ok
mydata <- prepare_data(prior_diet_matrix,signature_data,
LOQ,prior_signature_data, prior_delta)

#build the model
mymodel <- building_model(mydata)

Irstea/escroc documentation built on Dec. 9, 2018, 12:29 a.m.