posteriorprobs: Posterior probabilities Pr(Z = 1)

Description Usage Arguments Value

Description

Posterior probabilities Pr(Z = 1)

Confusion table for posterior probabilities

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S3 method for class 'EM'
posterior_probs(object)

## S3 method for class 'EM'
confusion_table(object, cutoff = 0.5)

## S3 method for class 'gibbs'
posterior_probs(object, burn = getOption("gBurn"),
  thin = getOption("gThin"))

## S3 method for class 'gibbs'
confusion_table(object, cutoff = 0.5,
  burn = getOption("gBurn"), thin = getOption("gThin"))

posterior_probs(object, ...)

confusion_table(object, cutoff = 0.5, ...)

Arguments

object

a gibbs object

cutoff

cutoff in probability for Z = 1

burn

number or percent of iterations to discard

thin

thinning interval. Keep every thin-th iteration.

...

additional arguments to be passed to or from methods

Value

posterior_prob returns a tibble with the observed type and posterior probability of being of type 1. confusion_table returns a table comparing predicted probabilities and types for those municipalities whose type is observed using the cutoff set in cutoff.


rferrali/rogali documentation built on May 26, 2019, 7 p.m.