univar               package:epibasix               R Documentation

_U_n_i_v_a_r_i_a_t_e _A_n_a_l_y_s_i_s _o_f _a _S_i_n_g_l_e _V_a_r_i_a_b_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     This function provides detailed univariate analysis for a single
     variable.  Values include the sample mean, median, standard
     deviation and range, as well as tools for hypothesis tests and
     confidence intervals.

_U_s_a_g_e:

     univar(X, alpha=0.05, mu0 = 0, shapiro=FALSE, digits=3)

_A_r_g_u_m_e_n_t_s:

       X: A Vector of observed values from a continuous distribution

   alpha: The desired Type I Error Rate for Hypothesis Tests and
          Confidence Intervals

     mu0: The null hypothesis for the true population mean

 shapiro: Logical: TRUE returns the Shapiro-Wilks Test for normality,
          this portion calls the shapiro.test function.

  digits: Number of Digits to round calculations

_D_e_t_a_i_l_s:

     This function provides a thorough summary of information within a
     vector.  It conveniently calculates useful statistics at the call
     of a single command.  Furthermore, it provides methods to test the
     hypothesis/construct confidence intervals for the true population
     mean.

_V_a_l_u_e:

       n: Number of Observations Used

    mean: The sample mean of the observations in X.

  median: The sample median of the observations in X.

     min: The sample minimum of the observations in X.

     max: The sample maximum of the observations in X.

       s: The sample standard deviation of the observations in X.

     var: The sample variance of the observations in X.

    test: The test statistic for the null hypothesis mu

 p.value: The p.value for the test statistic for mu

     CIL: The lower bound of the constructed confidence interval for mu

     CIU: The upper bound of the constructed confidence interval for mu

shapiro.statistic: The value of the Shapiro-Wilks Statistic for
          Normality.

shapiro.p.value: The P-value of the Shapiro-Wilks Statistic for
          Normality.

   alpha: The desired Type I Error Rate for Hypothesis Tests and
          Confidence Intervals

     mu0: The null hypothesis for the true population mean

 shapiro: Logical: TRUE returns the Shapiro-Wilks Test for normality

  digits: Number of Digits to round calculations

_A_u_t_h_o_r(_s):

     Michael Rotondi, mrotondi@uwo.ca

_R_e_f_e_r_e_n_c_e_s:

     Casella G and Berger RL.  Statistical Inference (2nd Ed.) Duxbury:
     New York, 2002.

_E_x_a_m_p_l_e_s:

     x <- rexp(100);
     univar(x);

