Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Simpatía

253 views

Published on

  • Be the first to comment

  • Be the first to like this

Simpatía

  1. 1. > Inoc=c(7,8,6,3,3,3,3,2,4,7,5,9)<br />> Nerv=factor(rep(rep(1:2,each=3),2),labels=c(" Nerv" ," NoNerv" ))<br />> Simp=factor(rep(1:2,each=6),labels=c(" CS" ," SS" ))<br />> Pp=data.frame(Simp,Nerv,Inoc)<br />> Pp<br /> Simp Nerv Inoc<br />1 CS Nerv 7<br />2 CS Nerv 8<br />3 CS Nerv 6<br />4 CS NoNerv 3<br />5 CS NoNerv 3<br />6 CS NoNerv 3<br />7 SS Nerv 3<br />8 SS Nerv 2<br />9 SS Nerv 4<br />10 SS NoNerv 7<br />11 SS NoNerv 5<br />12 SS NoNerv 9<br />> tapply(Inoc,list(Simp,Nerv),mean)<br /> Nerv NoNerv<br />CS 7 3<br />SS 3 7<br /> > tapply(Inoc,list(Nerv,Simp),mean)<br /> CS SS<br />Nerv 7 3<br />NoNerv 3 7<br />310515347980> boxplot(Inoc~Simp+Nerv)<br />> QQ=aov(Inoc~Simp+Nerv)<br />> summary(QQ)<br /> Df Sum Sq Mean Sq F value Pr(>F)<br />Simp 1 2.608e-31 2.608e-31 3.912e-32 1<br />Nerv 1 8.680e-31 8.680e-31 1.302e-31 1<br />Residuals 9 60.000 6.667 <br />Con *<br />> QQ=aov(Inoc~Simp*Nerv)<br />> summary(QQ)<br /> Df Sum Sq Mean Sq F value Pr(>F) <br />Simp 1 2.608e-31 2.608e-31 1.738e-31 1.0000000 <br />Nerv 1 8.680e-31 8.680e-31 5.787e-31 1.0000000 <br />Simp:Nerv 1 48.0 48.0 32 0.0004776 ***<br />Residuals 8 12.0 1.5 <br />---<br />Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 <br />> interaction.plot(Nerv,Simp,Inoc)<br />510540139065<br />15240843280> interaction.plot(Simp,Nerv,Inoc)<br />

×