rlmomco                package:lmomco                R Documentation

_R_a_n_d_o_m _D_e_v_i_a_t_e_s _o_f _a _D_i_s_t_r_i_b_u_t_i_o_n

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

     This function generates random deviates for the specified
     distribution in the parameter object argument. See documentation
     about the parameter object is seen in 'lmom2par' or 'vec2par'. The
     prepended 'r' in the function name is to parallel the built-in
     distribution syntax of R but of course reflects the 'lmomco' name
     in the function.

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

     rlmomco(n,para)

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

       n: Number of samples to generate

    para: The parameters from 'lmom2par' or similar.

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

     Vector of quantile values.

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

     W.H. Asquith

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

     'lmom2par', 'vec2par'

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

     lmr      <- lmom.ub(rnorm(20)) # generate 20 standard normal deviates
     para     <- parnor(lmr) # estimate parameters of the normal
     simulate <- rlmomco(20,para) # simulate 20 samples using lmomco package

     lmr  <- vec2lmom(c(1000,500,.3)) # first three lmoments are known
     para <- lmom2par(lmr,type="gev") # est. parameters of GEV distribution
     Q    <- rlmomco(45,para) # simulate 45 samples
     PP   <- pp(Q)            # compute the plotting positions
     plot(PP,sort(Q))         # plot the data up

