as.classCoMiRe {CoMiRe}R Documentation

classCoMiRe class constructor

Description

A constructor for the classCoMiRe class. The class classCoMiRe is a named list containing the output of the posterior estimation of CoMiRe model implemented in comire.gibbs

Usage

as.classCoMiRe(call = NULL, out = NULL, z = NULL, z.val = NULL, f0 = NULL, f1 = NULL, 
nrep, nb, bin = FALSE, univariate = TRUE)

Arguments

call

a formula for comire.gibbs.

out

an output of comire.gibbs.

z

optional numeric vector or matrix for the confounding covariates.

z.val

optional numeric vector containing a fixed value of interest for each of the confounding covariates to be used for the plots. Default value is mean(z) for numeric covariates or the mode for factorial covariates.

f0, f1

optional matrices containing simulated values of the mixture densities at low and high dose exposure; default values are simulated with comire.gibbs. It is possible to change these for differente fixed values of z: see predict_new_z function.

nrep

integer giving the total number of iterations used in comire.gibbs.

nb

integer giving the number of burn-in iterations used in comire.gibbs.

bin

logical. It is TRUE if y is drawn for a binomial distribution.

univariate

logical. It is TRUE if the model is univariate.

Author(s)

Antonio Canale, Arianna Falcioni


[Package CoMiRe version 0.8 Index]