Learn R Programming

plot3logit (version 2.2.0)

add_confregions: Computes the confidence regions of covariate effects

Description

Given the confidence level, it computes the confidence regions of the effects for each arrow of the field3logit or multifield3logit object given in input. If the field3logit or multifield3logit object already contains the confidence regions, they will be updated if the value of conf is different.

Usage

add_confregions(x, conf = 0.95, npoints = 100)

Arguments

x

an object of class field3logit or multifield3logit.

conf

confidence level of the regions.

npoints

number of points of the borders of the regions.

Value

Object of class field3logit or multifield3logit with updated confidence regions.

Examples

Run this code
# NOT RUN {
data(cross_1year)

mod0 <- nnet::multinom(employment_sit ~ gender + finalgrade, data = cross_1year)
field0 <- field3logit(mod0, 'genderFemale')
field0
add_confregions(field0)

# }

Run the code above in your browser using DataLab