Interactive Modeling App

Hernan L. Medina
January 22, 2017

My Shiny App

My app illustrates variations in children's weight by gender, age and height. You can try it out here.

  • It plots the data and fits a linear regression with weight as the dependent variable

  • It has input controls for the following

    • Selecting either age or height as the independing variable
    • Selecting either male or female children from the data

The Data

The data comes from the kid.weights data set in the UsingR package.

table(kid.weights$gender)

  F   M 
129 121 

Age and Height Summary

  • Age is in months

  • Height is in inches

summary(kid.weights[, c(1,3)])
      age             height     
 Min.   :  3.00   Min.   :12.00  
 1st Qu.: 12.25   1st Qu.:28.00  
 Median : 39.00   Median :36.00  
 Mean   : 47.95   Mean   :36.52  
 3rd Qu.: 69.75   3rd Qu.:43.00  
 Max.   :144.00   Max.   :67.00  

Plot Illustrating Correlations

pairs(kid.weights[, 1:3])

plot of chunk unnamed-chunk-4