kappa2n                package:GeneTS                R Documentation

_R_e_l_a_t_i_o_n_s_h_i_p _B_e_t_w_e_e_n _S_a_m_p_l_e _S_i_z_e _a_n_d _t_h_e _D_e_g_r_e_e _o_f _F_r_e_e_d_o_m _o_f _C_o_r_r_e_l_a_t_i_o_n _D_i_s_t_r_i_b_u_t_i_o_n

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

     The function 'kappa2n' returns the sample size that corresponds to
     a given degree of freedom kappa, whereas 'n2kappa' converts sample
     size to the corresponding degree of freedom.

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

     kappa2n(kappa, p=2)
     n2kappa(n, p=2)

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

   kappa: degree of freedom

       p: number of variables (p=2 corresponds to simple correlation)

       n: sample size

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

     The degree of freedom kappa of the sample distribution of the
     correlation coefficient depends both on the sample size n and the
     number p of investigated variables,  i.e. whether simple or
     partial correlation coefficients are being considered. For p=2
     (simple correlation coefficient) the degree of freedom equals
     'kappa = n-1', whereas for arbitrary p (with p-2 variables
     eliminated in the partial correlation coefficient) 'kappa = n-p+1'
     (see also 'dcor0').

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

     The sample size n corresponding to a given kappa, or the degree of
     freedom kappa corresponding to a given p.

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

     Juliane Schaefer (<URL: http://www.statistik.lmu.de/~schaefer/>)
     and Korbinian Strimmer (<URL:
     http://www.statistik.lmu.de/~strimmer/>).

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

     'dcor0', 'cor0.estimate.kappa'.

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

     # load GeneTS library
     library("GeneTS")

     # sample sizes corresponding to kappa=7
     kappa2n(7)     # simple correlation
     kappa2n(7, 40) # partial correlation with p=40 variables

     # degree of freedom corresponding to n=100
     n2kappa(100)
     n2kappa(100,40)

