get_means_for_scores: Lookup mean and sd for a sex / tooth / stage combination

Description Usage Arguments Value Examples

View source: R/get_means_for_scores.R

Description

This function expects a row with columns for "Canine", "P3", "P4", "M1", "M2", and "M3" that contain scores (or NA). A matrix of means and standard deviations for each tooth is returned.

Usage

1
get_means_for_scores(x, verbose = TRUE)

Arguments

x

data frame with one row

verbose

boolean flag for printing diagnostic messages

Value

6 x 2 matrix with means and standard deviations for each tooth.

Examples

1
2
3
4
5
6
7
8
get_means_for_scores(x = ExampleScores[1, ])

# Example from Seselj et al. (2019)
x <- data.frame(Sex = "M", Canine = "R.25", P3 = "R.25",
                P4 = "R.i", M1 = "A.5",
                M2 = "R.25", M3 = NA)
means <- get_means_for_scores(x)
estimate_dental_age(means)

Middleton-Lab/DentalAge documentation built on Dec. 17, 2021, 4:15 a.m.