na                    package:sma                    R Documentation

_B_a_s_i_c _S_t_a_t_i_s_t_i_c_a_l _F_u_n_c_t_i_o_n_s _f_o_r _H_a_n_d_l_i_n_g _M_i_s_s_i_n_g _V_a_l_u_e_s

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

     Basic statistical functions for handling missing values or NA. 
     In `log.na', `sum.na', `mean.na' and `var.na', `quantile.na',
     `length.na', missing values are omitted from the calculation. 
     The function `cor.na' calls `cor' with the argument
     `use="pairwise.complete.obs"'. 
     The function `order.na' only handles vector arguments and not
     lists.  However, it gives the option of omitting the NAs
     (`na.last=NA'), of placing the NAs at the start of the ordered
     vector (`na.last=F') or at the end (`na.last=T'). 
     The function `scale.na' is a modified version of `scale' which
     allows NAs in the variance calculation. If `scale = T', the
     function `f' in `scale.na' uses `var.na' to perform the variance
     calculation. The function `prod.na' is similar to the `prod'
     function with `na.rm=TRUE'. This function returns the product of
     all the values present in its arguments, omitting any missing
     values.

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

     Yee Hwa Yang, yeehwa@stat.berkeley.edu 
     Sandrine Dudoit, sandrine@stat.berkeley.edu

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

     `log', `sum', `mean', `var', `cor', `order', `scale',
     `link{prod}'.

