vec2pwm                package:lmomco                R Documentation

_C_o_n_v_e_r_t _a _V_e_c_t_o_r _o_f _P_r_o_b_a_b_i_l_i_t_y-_W_e_i_g_h_t_e_d _M_o_m_e_n_t_s _t_o _a _P_r_o_b_a_b_i_l_i_t_y-_W_e_i_g_h_t_e_d _M_o_m_e_n_t_s _O_b_j_e_c_t

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

     This function converts a vector of Probability-Weighted Moments
     (PWM) to a PWM object of this package. The object is an R 'list'.
     This function is intended to facilitate the use of PWM that the
     user might have from other sources. The first five PWMs are
     supported (beta_0, beta_1, beta_2,  beta_3, beta_4).

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

     vec2pwm(vec)

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

     vec: A vector of PWM values in (beta_0, beta_1, beta_2,  beta_3,
          beta_4) order.

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

     An R 'list' is returned.

   BETA0: The first PWM-equal to the arithmetic mean.

   BETA1: The second PWM.

   BETA2: The third PWM.

   BETA3: The fourth PWM.

   BETA4: The fifth PWM.

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

     W.H. Asquith

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

     'vec2lmom'

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

     pwm <- vec2pwm(c(12,123,12,12,54))

