This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
r-tutorial [2011/10/13 00:43] liuyipei |
r-tutorial [2011/10/15 12:05] (current) liuyipei [Problem Set 1 Hints] |
||
---|---|---|---|
Line 280: | Line 280: | ||
- | ====What I used to do assignment | + | ====Problem Set 1 Hints and Other Tricks==== |
< | < | ||
setwd('/ | setwd('/ | ||
Line 291: | Line 291: | ||
head(cd0) | head(cd0) | ||
- | cd0< | + | cd0< |
cd0$chole< | cd0$chole< | ||
cd.table< | cd.table< | ||
Line 324: | Line 324: | ||
trapz(my.x, my.y) | trapz(my.x, my.y) | ||
- | </code> | + | data.frame(a=c(8, |
+ | t | ||
+ | fisher.test(t)-> | ||
+ | ls(f.t) | ||
+ | f.t$p.value | ||
+ | f.t$conf.int | ||
+ | </ |