dMX                package:gamlss.mx                R Documentation

_E_v_a_l_u_a_t_e _t_h_e _d (_p_d_f) _a_n_d _p (_c_d_f) _f_u_n_c_t_i_o_n_s _f_r_o_m _G_A_M_L_S_S _m_i_x_t_u_r_e_s

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

     The functions 'dMX' and 'pMX' can be used to evalaluate the  pdf
     (p function) and the cdf (p function) repectively from a
     gamlss.family mixture.

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

     dMX(y, mu = list(mu1 = 1, mu2 = 5), sigma = list(sigma1 = 1, sigma2 = 1), 
            nu = list(nu1 = 1, nu2 = 1), tau = list(tau1 = 1, tau2 = 1), 
            pi = list(pi1 = 0.2, pi2 = 0.8), family = list(fam1 = "NO", fam2 = "NO"), 
            log = FALSE, ...)
     pMX(q, mu = list(mu1 = 1, mu2 = 5), sigma = list(sigma1 = 1, sigma2 = 1), 
            nu = list(nu1 = 1, nu2 = 1), tau = list(tau1 = 1, tau2 = 1), 
            pi = list(pi1 = 0.2, pi2 = 0.8), family = list(fam1 = "NO", fam2 = "NO"), 
            log = FALSE, ...)

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

     y,q: vector of quantiles 

      mu: a vector of 'mu''s

   sigma: a vector of 'sigma''s

      nu: a vector of 'nu''s 

     tau: a vector of 'tau''s 

      pi: a vector of 'pi''s 

  family: a vector of GAMLSS 'family''s 

     log: whether the  'log' of the function or not

     ...: for extra arguments

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

     Returns values or pdf  or cdf.

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

     Mikis Stasinopoulos

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

     fyNO<-dMX(y=seq(0,3,.01), mu=list(1.253, 0.1876), sigma=list(exp(-0.6665 ), exp(-2.573 )),
                       pi=list(0.4079609, 0.5920391 ), family=list("NO","NO") )
     plot(fyNO~seq(0,3,.01), type="l")                  
     FyNO<-pMX(q=seq(0,3,.01), mu=list(1.253, 0.1876), sigma=list(exp(-0.6665 ), exp(-2.573 )),
                       pi=list(0.4079609, 0.5920391 ), family=list("NO","NO") )
     plot(FyNO~seq(0,3,.01), type="l")  

