Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CODE:
Create 5 vectors ERP, name, sex, height, weight containing real data of your 04 classmates:
Execute the head and tail commands and show the outputs
head(STUDENT)
tail(STUDENT)
mean(STUDENT$WEIGHT)
sd (STUDENT$WEIGHT)
median(STUDENT$WEIGHT)
This graph shows direct relationship between Height & Weight I,e, variables are somewhat
corelated. However, sample size is very small therefore the results need further evaluation before
using it make any decision.
Assignment # 1 Sauban Ahmed
Business Stats ERP #: 13449
Spring 2020 MBA Evening
Add two new in student data frame containing standardized version of height and weight
ST_HEIGHT <- ((STUDENT$HEIGHT-mean(STUDENT$HEIGHT))/sd (STUDENT$HEIGHT))
ST_WEIGHT <- ((STUDENT$WEIGHT-mean(STUDENT$WEIGHT))/sd (STUDENT$WEIGHT))
STUDENT <- data.frame(ERP, NAME, GENDER, HEIGHT, WEIGHT, ST_HEIGHT, ST_WEIGHT)
head(STUDENT)
DATA:
HEIGHT WEIGHT
ERP NAME GENDER
(cm) (Kg)
1839
Hassan Bin Sultan Male 178 78
0
1679
S M Ovais Male 175 76
8
1841
Maryam Siddiqi female 165 70
4
5227 Hamza Shafiq Male 171 72