August 26, 2015

El problema

Preliminar, obtener datos

obtener los datos 
wget http://www.stat.ufl.edu/~winner/data/stature_hand_foot.txt
wget http://www.stat.ufl.edu/~winner/data/stature_hand_foot.dat

Preliminar, explorar datos

cat ../data/stature_hand_foot.txt
## Dataset:  stature_hand_foot.dat
## 
## Source: S.G. Sani, E.D. Kizilkanat, N. Boyan, et al. (2005).
## "Stature Estmation Based on Hand Length and Foot Length," Clinical
## Anatomy, Vol. 18, pp. 589-596.
## 
## Description: Stature, hand lengt, and foot length among 80 males and 75 females.
## Data simulated to have equal means, SDs, and correlations.
## 
## Variables/Columns
## ID  (w/in gender)  7-8
## gender    16   /* 1=M, 2=F  */
## Stature (height, mm)  18-24
## Hand length (mm)   26-32
## Foot length (mm)   34-40

head ../data/stature_hand_foot.dat
##        1       1  1760.2   208.6   269.6
##        2       1  1730.1   207.6   251.3
##        3       1  1659.6   173.2   193.6
##        4       1  1751.3   258.0   223.8
##        5       1  1780.6   212.3   282.1
##        6       1  1818.3   213.4   268.0
##        7       1  1798.7   213.2   272.4
##        8       1  1664.0   200.0   252.1
##        9       1  1808.7   214.5   274.7
##       10       1  1782.9   210.4   266.6

Preliminar, ponerlos en .csv, explorar

Tarea

  • Encontrar la forma en que se calculan las incertidumbres de el intercepto y la pendiente en el caso de ajuste de una linea recta por mínimos cuadrados.
  • Agregar al prgrama las instrucciones que las calculan
  • 2% extra de calificacion final, dibujar en la gráfica las incertidumbres y leyendas: