Orthodont.unstacked | R Documentation |
The data in this data set is from measurements of 27 children at the ages 8, 10, 12 and 14 (11 girls and 16 boys) and was collected by investigators at the University of North Carolina Dental School. By the use of x-ray, they measured the children's distance between the centre of the pituitary and the pterygomaxillary fissure.
Orthodont.unstacked
A data frame with 27 observations (rows) and 5 variables (columns).
Column name | Data type | Description | Values | |
[,1] | gender | factor | The child's gender | (F, M) |
[,2] | age8 | numeric | The distance in mm measured at age 8 | (16.5 - 27.5) |
[,3] | age10 | numeric | The distance in mm measured at age 10 | (19 - 28) |
[,4] | age12 | numeric | The distance in mm measured at age 12 | (19 - 31) |
[,5] | age14 | numeric | The distance in mm measured at age 14 | (19.5 - 31.5) |
Potthoff, R. F. and Roy, S. N. (1964) A Generalized Multivariate Analysis of Variance Model Useful Especially for Growth Curve Problems. Biometrika, 51, 313–326.
# Combine the age columns
stacked_orthodont <- cbind(Orthodont.unstacked[1],
stack(Orthodont.unstacked[2:5]))
# Rename columns
colnames(stacked_orthodont)[2:3] <- c("Distance", "Age")
# Measured distance based on gender and age
boxplot(Distance ~ gender*Age, data = stacked_orthodont)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.