coxfilter             package:genefilter             R Documentation

_A _f_i_l_t_e_r _f_u_n_c_t_i_o_n _f_o_r _u_n_i_v_a_r_i_a_t_e _C_o_x _r_e_g_r_e_s_s_i_o_n.

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

     A function that performs Cox regression with bindings for 'surt',
     'cens', and 'p' is returned. This function filters genes according
     to the attained p-value from a Cox regression using 'surt' as the
     survival times, and 'cens' as the censoring indicator. It requires
     'survival'.

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

     coxfilter(surt, cens, p)

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

    surt: Survival times.

    cens: Censoring indicator. 

       p: The p-value to use in filtering. 

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

     Calls to the 'coxph' function in the 'survival' library are used
     to fit a Cox model. The filter function returns 'TRUE' if the
     p-value in the fit is less than 'p'.

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

     R. Gentleman

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

     'Anova'

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

        set.seed(-5)
        sfun <- coxfilter(rexp(10), ifelse(runif(10) < .7, 1, 0), .05)
        ffun <- filterfun(sfun)
        dat <- matrix(rnorm(1000), ncol=10)
        out <- genefilter(dat, ffun)

