Slash                  package:VGAM                  R Documentation

_S_l_a_s_h _D_i_s_t_r_i_b_u_t_i_o_n

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

     Density function, distribution function, and random generation for
     the slash distribution.

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

     dslash(x, mu=0, sigma=1, log=FALSE, smallno=.Machine$double.eps*1000)
     pslash(q, mu=0, sigma=1)
     rslash(n, mu=0, sigma=1)

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

    x, q: vector of quantiles.

       n: number of observations. Must be a single positive integer. 

mu, sigma: the mean and standard deviation of  the univariate normal
          distribution.

     log: Logical. If 'TRUE' then the logarithm of the density is
          returned.

 smallno: See 'slash'.

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

     See 'slash', the 'VGAM' family function for estimating the two
     parameters by maximum likelihood estimation, for the formula of
     the probability density function and other details.

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

     'dslash' gives the density, and 'pslash' gives the distribution
     function, 'rslash' generates random deviates.

_N_o_t_e:

     'pslash' is very slow.

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

     Thomas W. Yee and C. S. Chee

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

     'slash'.

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

     ## Not run: 
     x = seq(-5,5,length=201)
     plot(x, dslash(x), type="l", col="blue", ylab="f(x)", ylim=c(0,0.4),
          main="Standard Slash, Normal and Cauchy Densities", lwd=2)
     lines(x, dnorm(x), col="black", lty=2, lwd=2)
     lines(x, dcauchy(x), col="red", lty=3, lwd=2)
     legend(x=2, y=0.3, c("slash","normal","cauchy"), lty=1:3,
            col=c("blue","black","red"), lwd=2)

     plot(x, pslash(q=x), col="blue", type="l", ylim=0:1)
     ## End(Not run)

