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)