home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-M / help / base / t.test < prev    next >
Encoding:
Text File  |  1997-04-23  |  2.5 KB  |  76 lines

  1.     
  2.     _S_t_u_d_e_n_t'_s _t-_T_e_s_t
  3.     
  4.          t.test(x, y=NULL, alternative="two.sided", mu=0,
  5.                  paired=FALSE, var.equal=FALSE, conf.level=.95)
  6.     
  7.     _A_r_g_u_m_e_n_t_s:
  8.     
  9.                x : a numeric vector of data values.
  10.     
  11.                y : an optional numeric vector data values.
  12.     
  13.      alternative : must be one of "two.sided", "greater" or
  14.                    "less".  You can specify just the initial
  15.                    letter. This parameter indicates the alterna-
  16.                    tive hypothesis.
  17.     
  18.               mu : a number indicating the true value of the
  19.                    mean (or difference in means if you are per-
  20.                    forming a two sample test).
  21.     
  22.           paired : a logical indicating whether you want a
  23.                    paired t-test.
  24.     
  25.        var.equal : a logical variable indicating whether to
  26.                    treat the two variances as being equal. If
  27.                    TRUE then the pooled variance is used to
  28.                    estimate the variance otherwise the Welch
  29.                    approximation to the degrees of freedom is
  30.                    used.
  31.     
  32.       conf.level : confidence level of the interval.
  33.     
  34.     _D_e_s_c_r_i_p_t_i_o_n:
  35.     
  36.          t.test performs one and two sample t-tests on vectors
  37.          of data.  If paired is TRUE then both x and y must be
  38.          specified and they must be the same length. Missing
  39.          values are removed (in pairs if paired is TRUE).  If
  40.          var.equal is TRUE then the pooled estimate of the vari-
  41.          ance is used. If var.equal is FALSE then the variance
  42.          is estimated separately for both groups and the Welch
  43.          modification to the degrees of freedom is used.
  44.     
  45.     _V_a_l_u_e_s:
  46.     
  47.          A list with class "htest" containing the following com-
  48.          ponents:
  49.     
  50.     statistic : the value of the t-statistic.
  51.     
  52.     parameters : the degrees of freedom for the t-statistic.
  53.     
  54.     p.value : the p-value for the test.
  55.     
  56.     conf.int : a confidence interval for the mean appropriate to
  57.               the specified alternative hypothesis.
  58.     
  59.     estimate : the estimated mean or difference in means depend-
  60.               ing on whether it was a one-sample test or a two-
  61.               sample test.
  62.     
  63.     null.value : the specified hypothesized value of the mean or
  64.               mean difference depending on whether it was a
  65.               one-sample test or a two-sample test.
  66.     
  67.     alternative : a character string describing the alternative
  68.               hypothesis.
  69.     
  70.      method : a character string indicating what type of t-test
  71.               was performed.
  72.     
  73.     data.name : a character string giving the name(s) of the
  74.               data.
  75.     
  76.