normsquare              package:Davies              R Documentation

_S_q_u_a_r_e _n_o_r_m_a_l _d_i_s_t_r_i_b_u_t_i_o_n

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

     A suite of functions to analyze  random variables (eg X^2, exp(X)
     with X~Norm(0,1); and GLD) in terms of the Davies distribution

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

     normsquare(n)
     do.normsquare(n,m)
     do.many.normsquare(vector,times)
     lognorm(n)
     do.lognorm(n,m)
     do.many.lognorm(vector,times)
     gld.ozturk(n)
     do.gld.ozturk(n,m)
     do.many.gld.ozturk(vector,times)

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

       n: size of random sample

       m: How often to carry out the resampling process

  vector: vector of "n"s

   times: how many resamplings to do

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

     'lognorm' gives p-values by parametrically resampling from a
     lognormal distribution 'normsquare' gives p-values by
     parametrically resampling from a square normal distribution
     'gld.ozturk' gives p-values by parametrically resampling from a
     gld distribution 'do.lognorm' is a wrapper for 'lognorm'
     'do.normsquare' is a wrapper for 'normsquare' 'do.gld.ozturk' is a
     wrapper for 'gld.ozturk' 'do.many.lognorm' is a wrapper for
     'do.lognorm' used for table N 'do.many.normsquare' is a wrapper
     for 'do.normsquare' used for table N 'do.manygld.ozturk' is a
     wrapper for 'do.gld.ozturk' used for table N.

_N_o_t_e:

     'do.many.normsquare' is very slow for large values of n.

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

     Robin K. S. Hankin

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

      do.many.normsquare(c(20,30),4)

     #carries out resampling on a
     #square-normal random dataset of size 20 and 30, four times.
     #Takes a long time.

