Prediction of Weight

Jag
05/26/2017

Goals

  • This app is an effort to learn the “Shiny”(web framework for R).
  • The dataset (Mammals) I used for prediction is the stored dataset in R library(MASS)
  • The simple application allows user to predict the weight of brain given the body weight and name of Mammal.
  • The goal is to learn how to develop and deploy the shiny app.

The Data

  • MAMMALS - is data frame with average brain and body weights for 62 species of land mammals.
  • Source- Weisberg, S. (1985) Applied Linear Regression. 2nd edition. Wiley, pp. 144–5.

Selected from: Allison, T. and Cicchetti, D. V. (1976) Sleep in mammals: ecological and constitutional correlates. Science 194, 732–734.

library(MASS)
data("mammals")
head(mammals)
                   body brain
Arctic fox        3.385  44.5
Owl monkey        0.480  15.5
Mountain beaver   1.350   8.1
Cow             465.000 423.0
Grey wolf        36.330 119.5
Goat             27.660 115.0

Application link