Learn R Programming

projoint (version 1.1.0)

print.projoint_results: Print method for projoint_results

Description

Custom print method for objects of class projoint_results.

Usage

# S3 method for projoint_results
print(x, ...)

Value

No return value, called for its side effect of printing a summary of the projoint_results object to the console.

Arguments

x

An object of class projoint_results.

...

Additional arguments (ignored).

Examples

Run this code
# \donttest{
data(exampleData1)
dat <- reshape_projoint(
  exampleData1,
  .outcomes = c("choice1", "choice2", "choice1_repeated_flipped")
)
att <- unique(dat$labels$attribute_id)[1]
levs <- subset(dat$labels, attribute_id == att)$level_id
lev_names <- sub(".*:", "", levs)
q <- set_qoi(
  .structure     = "choice_level",
  .estimand      = "mm",
  .att_choose    = att,
  .lev_choose    = lev_names[2],
  .att_notchoose = att,
  .lev_notchoose = lev_names[1]
)
fit <- projoint(dat, .qoi = q)
print(fit)
# }

Run the code above in your browser using DataLab