start_pelvis: An R-Shiny application for the sex estimation of the human os...

View source: R/start_pelvis.R

start_pelvisR Documentation

An R-Shiny application for the sex estimation of the human os coxae

Description

Launches a graphical user interface (GUI) allowing to use Bruzek's methods (2002, 2019) for sexing the human os coxae, based on eleven visual traits.

Usage

start_pelvis()
StartPELVIS()

Details

The R-Shiny application proposes two tabs:

  • ‘Data input: manual editing’ can be used for both data entry and sex classification. The eleven trichotomic traits are manually edited for each os coxae through the GUI, and the corresponding sex estimates are then produced.

  • ‘Data input: from text file’ is the classical way to get the sex estimates for a whole sample of ossa coxae correctly described in a file. PELVIS accepts .CSV or .TXT data files, but does not support .ODS or .XLS(X) files. The predictive factors (i.e. the eleven trichotomic traits) should have the same headers and levels as in the reference dataset ‘refData’ included in PELVIS. An example of valid data file can be found on Zenodo: \Sexpr[results=rd]{tools:::Rd_expr_doi("10.5281/zenodo.2586897")} (its field separator is the semicolon ";").

In both tabs, two sex estimates are given: the visual sex estimate from Bruzek (2002), and the probabilistic sex estimate from Santos, Guyomarc'h, Rmoutilova and Bruzek (2019). Depending on the traits possibly missing on the ossa coxae submitted to the program, the logistic regression models can use various subsets of best predictors (selected by AIC or BIC), or all predictors. The final subset of predictors used for each os coxae is given in the table of results. The user may also want to define a posterior probability threshold for sex estimation (0.90 or 0.95): any os coxae that does not reach this threshold will remain indeterminate.

Value

The function returns no value by itself, but the results can be downloaded through the graphical interface. The table of results includes the following columns:

  • ‘Sex estimate (Bruzek 2002)’: the visual sex estimate based on Bruzek's method (2002).

  • ‘Statistical sex estimate (2019)’: a sex estimation based on a logistic regression model, following the method described in Santos, Guyomarc'h, Rmoutilova and Bruzek (2019, submitted).

  • ‘Prob(M)’ is the probability (obtained with the logistic regression model) that the individual is a man. According to tradition in biological anthropology, we have the following decsion rule: if Prob(M)>0.95 then the sex estimate is ‘M’; if Prob(M)<0.05 then the sex estimate is ‘F’; else the individual remains indeterminate (‘I’).

  • ‘Prob(F)’, defined as 1-Prob(M), is the probability that the individual is a woman.

  • ‘Selected predictors in LR model’: for a given individual, the sex estimation proceeds as follows. First, a complete model is built using all available (i.e., nonmissing) traits for this individual. Then, a classical stepwise model selection by BIC is performed, and the subset of the most useful traits is used to produce the final sex estimate. This column gives the traits used for each individual.

  • ‘10-fold CV accuracy (%)’: the rate of correct classification for the corresponding logistic regression model is estimated using a ten-fold cross-validation on the learning sample.

  • ‘Indet. rate in CV (%)’: the rate of individuals remaining indeterminate in cross-validation for the corresponding logistic regression model.

Note

The R console is not available when the GUI is active. To exit the GUI, type Echap (on MS Windows systems) or Ctrl+C (on Linux systems) in the R console.

Regardless of the size and resolution of your screen, for convenience, it is advisable to decrease the zoom level of your web browser and/or to turn on fullscreen mode.

Author(s)

Frédéric Santos, <frederic.santos@u-bordeaux.fr>

References

Bruzek, J. (2002) A method for visual determination of sex, using the human hip bone. American Journal of Physical Anthropology 117, 157–168. doi: 10.1002/ajpa.10012

Santos, F., Guyomarc'h, P., Rmoutilova, R. and Bruzek, J. (2019) A method of sexing the human os coxae based on logistic regressions and Bruzek's nonmetric traits. American Journal of Physical Anthropology, 169(3), 435–447. doi: 10.1002/ajpa.23855

Examples

if(interactive()){start_pelvis()}

PELVIS documentation built on Aug. 8, 2023, 5:09 p.m.