home *** CD-ROM | disk | FTP | other *** search
-
- _S_t_u_d_e_n_t'_s _t-_T_e_s_t
-
- t.test(x, y=NULL, alternative="two.sided", mu=0,
- paired=FALSE, var.equal=FALSE, conf.level=.95)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : a numeric vector of data values.
-
- y : an optional numeric vector data values.
-
- alternative : must be one of "two.sided", "greater" or
- "less". You can specify just the initial
- letter. This parameter indicates the alterna-
- tive hypothesis.
-
- mu : a number indicating the true value of the
- mean (or difference in means if you are per-
- forming a two sample test).
-
- paired : a logical indicating whether you want a
- paired t-test.
-
- var.equal : a logical variable indicating whether to
- treat the two variances as being equal. If
- TRUE then the pooled variance is used to
- estimate the variance otherwise the Welch
- approximation to the degrees of freedom is
- used.
-
- conf.level : confidence level of the interval.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- t.test performs one and two sample t-tests on vectors
- of data. If paired is TRUE then both x and y must be
- specified and they must be the same length. Missing
- values are removed (in pairs if paired is TRUE). If
- var.equal is TRUE then the pooled estimate of the vari-
- ance is used. If var.equal is FALSE then the variance
- is estimated separately for both groups and the Welch
- modification to the degrees of freedom is used.
-
- _V_a_l_u_e_s:
-
- A list with class "htest" containing the following com-
- ponents:
-
- statistic : the value of the t-statistic.
-
- parameters : the degrees of freedom for the t-statistic.
-
- p.value : the p-value for the test.
-
- conf.int : a confidence interval for the mean appropriate to
- the specified alternative hypothesis.
-
- estimate : the estimated mean or difference in means depend-
- ing on whether it was a one-sample test or a two-
- sample test.
-
- null.value : the specified hypothesized value of the mean or
- mean difference depending on whether it was a
- one-sample test or a two-sample test.
-
- alternative : a character string describing the alternative
- hypothesis.
-
- method : a character string indicating what type of t-test
- was performed.
-
- data.name : a character string giving the name(s) of the
- data.
-
-