STT 212- Final Exam Guide - Comprehensive Notes for the exam ( 64 pages long!)

71 views64 pages

Document Summary

Storing numbers: > (cid:862)na(cid:373)e of data set(cid:863) bp. freq bp. freq. Relative frequency table: > length(data), and then write > bp. relfreq (cid:271)a(cid:396)plot(cid:894)(cid:271)p. f(cid:396)e(cid:395), (cid:373)ai(cid:374) = (cid:862)title(cid:863), (cid:455)la(cid:271) = (cid:862)(cid:455) a(cid:454)is title(cid:863)(cid:895) Include las = 2 if the names on the xaxis are vertical: barchart of relative frequency. > (cid:271)a(cid:396)plot(cid:894)(cid:271)p. (cid:396)elf(cid:396)e(cid:395), (cid:373)ai(cid:374) = (cid:862)title(cid:863), (cid:455)la(cid:271) = (cid:862)(cid:455) a(cid:454)is title(cid:863)(cid:895) Hist(cid:894)data,(cid:373)ai(cid:374) = (cid:862)histog(cid:396)a(cid:373) of data(cid:863), (cid:454)la(cid:271) = (cid:862)data(cid:863)(cid:895: boxplot. (cid:271)o(cid:454)plot(cid:894)data,(cid:373)ai(cid:374) = (cid:862)bo(cid:454)plot of data(cid:863),(cid:455)la(cid:271) = (cid:862)data(cid:863)(cid:895) this results in a vertical boxplot. (cid:271)o(cid:454)plot(cid:894)data,(cid:373)ai(cid:374) = (cid:862)bo(cid:454)plot of data(cid:863), (cid:454)la(cid:271) = (cid:862)data(cid:863), horizontal = true: summary command. Can also get standard deviation and variation by doing: sd(data, var(data) Boxplot(dataname~dataname,yl a(cid:271)=(cid:863)(cid:395)ua(cid:374)titativeva(cid:396)ia(cid:271)le(cid:863),(cid:373)ai(cid:374)=(cid:863)title of the (cid:272)ha(cid:396)t(cid:863: summary tapply(dataname,dataname,su mmary, standard deviation tapply(dataname,dataname,sd) Case cc: two-way table t1