r:lecture
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:lecture [2015/11/05 01:33] – hkimscil | r:lecture [2015/11/05 05:49] (current) – hkimscil | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| qqline(x) | qqline(x) | ||
| + | ====== 함수만들기 ====== | ||
| + | se = function(x) sd(x)/ | ||
| + | ====== 시뮬레이션 ====== | ||
| + | set.seed(1234) | ||
| + | height = rnorm(n=100000, | ||
| + | mean(height) | ||
| + | |||
| + | |||
| + | M=NULL | ||
| + | V=NULL | ||
| + | for (i in 1:10000) { | ||
| + | x=sample(height, | ||
| + | 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: by hkimscil
