1. ¿¬±¸ Á¾·á ½ÃÁ¡¿¡¼ÀÇ ¼º°úÁ¡¼ö(t2)ÀÇ »óÀڱ׸²À» ¼ºº°·Î ³ª¶õÈ÷ ±×¸®½Ã¿À. ±×·¡ÇÁÀÇ Á¦¸ñÀ¸·Î º»ÀÎÀÇ ÇйøÀ» ³ÖÀ¸½Ã¿À. (3Á¡)
# install.packages(datarium)
library(datarium)
head(performance)
# ¼ºº° t2 Æò±Õ
aggregate(t2 ~ gender, data¡ë performance, mean)
cat( ) # ÇÑ ÁÙ ¶ç¿ì±â
# ¼ºº° t2 Áß¾Ó°ª(2ºÐÀ§¼ö)
aggregate(t2 ~ gender, data¡ë performance, median)
# »óÀڱ׸²
boxplot(t2 ~ gender, data¡ë performance, col¡ëyellow, ylab¡ët2(¼º°úÁ¡¼ö), main¡ëº»ÀÎÀÇ Çйø)
# »óÀڱ׸²¿¡ ¼ºº° Æò±Õ Ç¥½Ã(Àû»ö + À§Ä¡°¡ Æò±ÕÀÓ), cex Á¡ÀÇ Å©±â, pch Æ÷ÀÎÆ® Á¾·ù
points(aggregate(t2 ~ gender, data¡ë performance, mean), pch¡ë3, col¡ëred, cex¡ë2)
|