User Tools

Site Tools


r:lecture

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
r:lecture [2015/11/05 10:03] hkimscilr:lecture [2015/11/05 14:19] (current) hkimscil
Line 24: Line 24:
 qqline(x) qqline(x)
  
 +====== 함수만들기 ======
 +se = function(x) sd(x)/sqrt(length(x))
  
 +====== 시뮬레이션 ======
 +set.seed(1234)
 +height = rnorm(n=100000, mean=175, sd=5)
 +mean(height)
 +
 +
 +M=NULL
 +V=NULL
 +for (i in 1:10000) { 
 +x=sample(height, size=100) 
 +M[i]=mean(x) 
 +V[i]=var(x) 
 +}
 +
 +====== t-test ======
 +x = c{15.5, 11.21, 12.67, 8.877, 12.15, 9.88, 2.06, 14.5, 0, 4.97}
  
r/lecture.1446687237.txt.gz · Last modified: 2015/11/05 10:03 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki