predict_new_z {CoMiRe}R Documentation

comire.gibbs for different fixed values of z

Description

This function computes the predicted values of the density al low dose f_0 and of the density at high dose f_{inf}, for fixed values of the confounders z.

Usage

predict_new_z(fit, y, z.val)

Arguments

fit

the output of comire.gibbs opportunely trasformed in classCoMiRe class

y

numeric vector for the response used in comire.gibbs

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.

Value

An object of class classCoMiRe.

Author(s)

Antonio Canale, Arianna Falcioni


[Package CoMiRe version 0.8 Index]