DRDataRaft/ docs
GitHub ↗

E14 Check Bounded Table Sample against Saved Contract

E14The extension in your workspace1 step

Use your current course session. Preparation and course runner · R script ↓

E14 Check Bounded Table Sample against Saved Contract

Goal: Check a deliberately bounded sample.

Prerequisites: E12; policies and bad_policies in the workspace.

MANUAL: Select the saved contract, run DataRaft: Check Bounded Table Sample against Saved Contract and choose a table. Try policies, then bad_policies.

training_step(
  "E14",
  {
    print(nrow(policies))
  },
  needs = c("E12"),
  enabled = training_options$gui,
  optional = TRUE
)

Expected result: Counts for a bounded sample. The H04 contract has no nonnegative rule, so a negative premium need not fail.

Task: Why can bad_policies pass this structural contract?

Show solution

The business rule was attached to the product in H05, not exported into the H04 ODCS file.

Search documentation

Search functions, packages and guides.