ipm_analyse: Analyse data for a simulation study

Description Usage Arguments Value

View source: R/ipm_analyse.R

Description

Using the model of interest to analyse the simulation by the model of interest.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ipm_analyse(
  data,
  Plot = FALSE,
  model = "lcl",
  priors = NULL,
  maxtime = 5,
  unit = "mins",
  save = 20000L,
  chain = 3,
  moni,
  inits = NULL
)

Arguments

data

an nlists object, simulation dataset returned by ipm_sim.

Plot

a flag, indicates whether to save the traceplot and the density plot for MCMC outputs.

model

a string, specifying the model of interest. Default is "lcl", which means using composite likelihood to analyse the simulation from true joint likelihood. Similarly, you can use "ll" or "clcl".

priors

a string of code to set the prior.

maxtime

a scalar, specifying the maximum time to spend on analysis.

unit

a character string specifying the units of time for max.time. See difftime.

save

a scalar, the number of (potentially thinned) samples to save.

chain

a scalar, the number of MCMC chains.

moni

a vector of string or a string, specifying the parameters want to monitor.

inits

a list, specifying the initial values of parameters.

Value

a mcmcrs object, the MCMC outputs, and plots (If plot=TRUE).


zywhy9/IPM documentation built on April 19, 2020, 10:24 p.m.