Learn R Programming

tooth (version 0.5.0)

sim_exam: Simulated dental examination data

Description

A simulated surface-level dental examination dataset for 20 patients, each with 7 teeth per quadrant (28 teeth) and 5 coronal surfaces plus 2 root surfaces per tooth. Designed for demonstrating and testing calc_dmft(), calc_dmfs(), and build_odontogram().

Usage

sim_exam

Arguments

Format

A data frame with 3,920 rows and 7 columns:

record_id

Patient identifier (character, "P01" to "P20").

tooth_num

Tooth identifier in quadrant notation (e.g. "ur1", "ll7").

tooth_surface

Surface name: buc, lin, mes, dis, occ, rootb, or rootl.

lesion_code

ICDAS lesion code (integer 0-6). 0 = sound, 3-6 = caries.

filling_code

Filling/restoration code (integer). 0 = none, 1-8 = restored.

act

Lesion activity code (integer). 1 = inactive, 2 = active.

code

Tooth-level status code (integer). 1 = missing, 2-8 = present.

Examples

Run this code
data(sim_exam)
head(sim_exam)
calc_dmft(sim_exam)

Run the code above in your browser using DataLab