skew                  package:psych                  R Documentation

_C_a_l_c_u_l_a_t_e _s_k_e_w _f_o_r _a _v_e_c_t_o_r, _m_a_t_r_i_x, _o_r _d_a_t_a._f_r_a_m_e

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

     Find the skew for each variable in a data.frame or matrix.  Unlike
     skew in e1071, this calculates a different skew for each variable
     or column of a data.frame/matrix.

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

     skew(x, na.rm = TRUE)

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

       x: A data.frame or matrix 

   na.rm: how to treat missing data 

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

     given a matrix or data.frame x, find the skew for each column.

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

     if input is a matrix or data.frame, skew is a vector of skews

_N_o_t_e:

     The mean function supplies means for the columns of a data.frame,
     but the overall mean for a matrix.  Mean will throw a warning for
     non-numeric data, but colMeans stops with non-numeric data. Thus,
     the function uses either mean (for data frames) or colMeans (for
     matrices).  This is true for skew and kurtosi as well.

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

     William Revelle

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

     'describe', 'describe.by', 'kurtosi'

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

     round(skew(attitude),2)

