inst/doc/getting-started.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(callback)
data(inter1)
str(inter1)

## -----------------------------------------------------------------------------
levels(inter1$gender)
levels(inter1$origin)

## -----------------------------------------------------------------------------
m <- callback(data = inter1, cluster = "offer", candid = c("gender","origin"), callback = "callback")

## -----------------------------------------------------------------------------
print(m)

## -----------------------------------------------------------------------------
s <- stat_count(m)

## -----------------------------------------------------------------------------
print(s)

## -----------------------------------------------------------------------------
stat_prop(m)

## -----------------------------------------------------------------------------
stat_comp(m)

Try the callback package in your browser

Any scripts or data that you put into this service are public.

callback documentation built on May 29, 2024, 4:57 a.m.