kurtosis        package:PerformanceAnalytics        R Documentation

_K_u_r_t_o_s_i_s

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

     compute kurtosis of a univariate distribution

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

     kurtosis(x, na.rm = FALSE, method = c("excess", "moment", "fisher"), ...)

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

   na.rm: a logical. Should missing values be removed? 

  method: a character string which specifies the method of computation.
          These are either '"moment"', '"fisher"', or '"excess"'. If
          '"excess"' is selected, then the value of the kurtosis is
          computed by the '"moment"' method and a value of 3 will be
          subtracted. The '"moment"' method is based on the definitions
          of kurtosis for distributions; these forms should be used
          when resampling (bootstrap or jackknife). The '"fisher"'
          method correspond to the usual "unbiased" definition of
          sample variance, although in the case of kurtosis exact
          unbiasedness is not possible. 

       x: a numeric vector or object. 

     ...: arguments to be passed. 

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

     This function was ported from the RMetrics package fUtilities to
     eliminate a dependency on fUtilties being loaded every time.  This
     function is identical except for the addition of 'checkData' and
     additional labeling.

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

     'kurtosis' returns the value of the statistics, a numeric value.
     An attribute which reports the used method is added.

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

     Diethelm Wuertz

_S_e_e _A_l_s_o:

     'skewness'.

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

     ## mean -
     ## var -
        # Mean, Variance:
        r = rnorm(100)
        mean(r)
        var(r)

     ## kurtosis -
        kurtosis(r)

     data(managers)
     kurtosis(managers[,1:8])

