getdetectionlimit        package:compositions        R Documentation

_G_e_t_s _t_h_e _d_e_t_e_c_t_i_o_n _l_i_m_i_t _s_t_o_r_e_d _i_n _t_h_e _d_a_t_a _s_e_t

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

     The detection limit of those values below-detection-limit are 
     stored as negative values in compositional dataset. This function 
     extracts that information.

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

     getDetectionlimit(x,dl=attr(x,"detectionlimit"))

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

       x: a data set

      dl: a default to replace the information in the dataset

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

     For a proper treatment of truncated data it would be necessary to
     know the detection limit even for observed data. Unfortunately,
     there is no clear way to encode this information without annoying
     the user.

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

     a matrix in the same shape as x, with a positive value (the
     detection limit) where available, and NA in the other cells.

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

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

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

     'compositions.missings','zeroreplace'

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

     x <- c(2,-0.5,4,3,-0.5,5,BDLvalue,MARvalue,MNARvalue)
     getDetectionlimit(x)

