User Tools

Site Tools


r:getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
r:getting_started [2017/09/06 10:16] – [A trial] hkimscilr:getting_started [2021/03/02 09:48] – [A trial] hkimscil
Line 47: Line 47:
 </code> </code>
 <code>cars <code>cars
 +plot(dist~speed, data=cars)
 m.cars <- lm(dist ~ speed, data=cars) m.cars <- lm(dist ~ speed, data=cars)
 m.cars m.cars
Line 55: Line 56:
 summary(chickwts) summary(chickwts)
 boxplot(weight~feed, data=chickwts) boxplot(weight~feed, data=chickwts)
-anova(lm(weight~feed, data=chickwts)+anova(lm(weight~feed, data=chickwts) ## or . . .  
 +m.chck <- aov(weight~feed, data = chickwts) 
 +m.chck 
 +summary(m.chck)
 </code> </code>
  
 +----
 +Not required yet. 
 [[:t-test]] [[:t-test]]
 [[:ANOVA]] [[:ANOVA]]
Line 64: Line 70:
 [[:regression]] [[:regression]]
 [[:Multiple regression]] [[:Multiple regression]]
 +----
 ====== Entering commands ====== ====== Entering commands ======
 <code> <code>
Line 149: Line 156:
 [1] 8.75 5.50 [1] 8.75 5.50
 </code> </code>
 +
 +see [[https://3months.tistory.com/97|this document]] for **trim** option
  
 <code> mean> mean(USArrests, trim = 0.2) <code> mean> mean(USArrests, trim = 0.2)
Line 159: Line 168:
 7.42 167.60 66.20 20.16 7.42 167.60 66.20 20.16
 </code> </code>
 +see [[https://rfriend.tistory.com/40|this document]] for **colMeans** function.
  
 ====== Searching via Keywords ====== ====== Searching via Keywords ======
r/getting_started.txt · Last modified: 2021/03/02 09:48 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki