View source: R/compute_diet_matrix.R
| compute_diet_matrix | R Documentation |
Gives the quantiles of posterior diet
compute_diet_matrix(mydata, myres, quant = c(0.025, 0.5, 0.975))
mydata |
a list as returned by function |
myres |
a fit as returned by |
quant |
a vector of quantiles |
a 3D array of dim length(quant) x nb species x nb species
#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)
#fit the model
myresults <- fit_escroc(mydata, mymodel)
#diet
compute_diet_matrix(mydata, myresults)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.