August 16, 2018

Analysis Summary

This is a quick and dirty analysis that uses the ChickWeigth dataset from R base package to predict the Avg. weight of a brood using two input variables, "Time (in days)" and "Diet".

The ChickWeight dataset includes the weight of 50 chicks, each one fed with 1 of 4 different diets and weighted at different times within a range of 0 to 21 days.

Given a new Time in days and a diet, the model will predict the avg. weight of the brood after the number of days specified.

The model is being presented to the public through a Shiny application and the underlying files can be found in this github repository http://github.com/silversky54/ChickWeight-W4project

Notes and Considerations

  • This analysis is merely for demonstration purposes and might not be suitable to be used in a real world scenario.
  • Residual Analysis shows that there's heteroscedasticity in the data so the model is not reliable to predict the exact weight of chick. However, it might still be good enough to predict the average weight of the brood given a specific diet.

Using the model

You can find the ChickWeight model to predict the average weight of a brood at this site: https://elinares.shinyapps.io/chickweight/.

Use the controls on the left-side panel to provide inputs to the model and to add or remove datapoints from the plot on the right-side panel.

drawing

Controls

The application has 3 main controls, 2 for model inputs and 1 for plot control. It also includes some buttons to quickly reset input controls or selecting multiple check boxes at the same time.

  • Model Inputs:
    • Number of days: Use this slide bar to select between 0 to 21 days for model input.
    • Chicken food Diet: Use this Dropdown menu to select one of the 4 diets for model input.
    • Reset Inputs: Button to reset inputs to original state.
  • Plot Control:
    • Plot Diet: Use the checkboxes to add or remove datapoints that are part of any diet from the plot.
    • Select all: Checks all boxes for the diets.
    • Clear all: Un-checks all boxes for the diets.