Learn R Programming

xpose.xtras (version 0.0.2)

list_dv_probs: For a categorical DV variable, show associated probabilities

Description

A convenient quick check for how probabilities are currently assigned, based on set_dv_probs.

Usage

list_dv_probs(xpdb, .problem = NULL, .dv_var = NULL)

Value

<tibble> of probabilities

Arguments

xpdb

<xp_xtras> object

.problem

<numeric> Problem number to use. Uses the all problems if NULL

.dv_var

<tidyselect> of column having the categorical observation. Default is first-listed catdv.

Examples

Run this code

pkpd_m3 %>%
  set_dv_probs(1, 1~LIKE, .dv_var = BLQ) %>%
  list_dv_probs(.dv_var=BLQ)

Run the code above in your browser using DataLab