Predicting the Weight of a Cats Heart

Chris Selig
Feb 25th, 2017

Overview

This presentation is part of the Developing Data Products Coursera course requirements.

The application for this project can be found here: https://chris-selig.shinyapps.io/cat_prediction_app/

The goal of the project is two fold:

  • Create a simple Shiny application
  • Build a presentation in regards to the application

The Application

The application predicts the weight of a cats heart (in grams)

It takes two inputs.

  • The cats weight in kg
  • The cats gender

Two linear models are used to predict the weight of the cat.

  • The first model takes both the gender and weight to predict the hearts weight.
  • The second model just uses the cat's weight to predict the hearts weight

The Data

The heart and body weights of samples of male and female cats used for digitalis experiments. The cats were all adult, over 2 kg body weight.

This data frame contains the following columns:

Sex: Factor with evels “F” and “M”.

Bwt: body weight in kg.

Hwt: heart weight in g.

Source R. A. Fisher (1947) The analysis of covariance method for the relation between a part and the whole, Biometrics 3, 65-68.

The Data - Part 2

Here is a view of the data that the models are trained on

ggplot(cats, aes(Bwt, Hwt, colour = Sex)) + 
  geom_point()

plot of chunk unnamed-chunk-2