The R Project SVN R

Rev

Rev 59039 | Rev 76150 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61160
Line 90... Line 90...
90
  \code{\link{prop.test}}
90
  \code{\link{prop.test}}
91
}
91
}
92
\examples{
92
\examples{
93
require(graphics)
93
require(graphics)
94
 
94
 
95
t.test(1:10,y=c(7:20))      # P = .00001855
95
t.test(1:10, y = c(7:20))      # P = .00001855
96
t.test(1:10,y=c(7:20, 200)) # P = .1245    -- NOT significant anymore
96
t.test(1:10, y = c(7:20, 200)) # P = .1245    -- NOT significant anymore
97
 
97
 
98
## Classical example: Student's sleep data
98
## Classical example: Student's sleep data
99
plot(extra ~ group, data = sleep)
99
plot(extra ~ group, data = sleep)
100
## Traditional interface
100
## Traditional interface
101
with(sleep, t.test(extra[group == 1], extra[group == 2]))
101
with(sleep, t.test(extra[group == 1], extra[group == 2]))