moment                package:moments                R Documentation

_S_t_a_t_i_s_t_i_c_a_l _M_o_m_e_n_t_s

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

     This function computes the sample moment of specified order.

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

     moment(x, order = 1, central = FALSE, absolute = FALSE, na.rm = FALSE)

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

       x: a numeric vector of data.

   order: order of the moment to be computed

 central: a logical value - if central moments are to be computed.

absolute: a logical value - if absolute moments are to be computed.

   na.rm: a logical value - remove NA values?

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

     Lukasz Komsta

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

     set.seed(1234)
     x <- rnorm(10)
     moment(x)
     moment(x,order=3,absolute=TRUE)

