KSd                 package:sfsmisc                 R Documentation

_A_p_p_r_o_x_i_m_a_t_e _C_r_i_t_i_c_a_l _V_a_l_u_e_s _f_o_r _K_o_l_m_o_g_o_r_o_v-_S_m_i_r_n_o_v'_s _D

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

     Computes the critical value for Kolmogorov-Smirnov's D_n, for
     sample sizes n >= 10 and confidence level 95%.

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

     KSd(n)

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

       n: the sample size, 'n >= 10'.

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

     Based on tables values given in the reference below. For n <= 80
     uses interpolations from exact values, elsewhere uses asymptotic
     approximation.

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

     The critical value for D (two-sided) for significance level 0.05
     (or confidence level 95%).

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

     Kjetil Halvorsen and Martin Maechler

_R_e_f_e_r_e_n_c_e_s:

     Peter J. Bickel and Kjell A. Doksum (1977), _Mathematical
     Statistics: Basic Ideas and Selected Topics_. Holden Day. Section
     9.6 and table IX.

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

     Is used from 'ecdf.ksCI'.

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

     KSd(90)
     KSd(1:9)# now works

     op <- par(mfrow=c(2,1))
       plot(KSd, 10, 150)# nice
       abline(v = c(75,85), col = "gray")
       plot(KSd, 79, 81, n = 1001)# *very* tiny discontinuity at 80
     par(op)

