prop.trend.test package:stats R Documentation _T_e_s_t _f_o_r _t_r_e_n_d _i_n _p_r_o_p_o_r_t_i_o_n_s _D_e_s_c_r_i_p_t_i_o_n: Performs chi-squared test for trend in proportions, i.e., a test asymptotically optimal for local alternatives where the log odds vary in proportion with 'score'. By default, 'score' is chosen as the group numbers. _U_s_a_g_e: prop.trend.test(x, n, score = 1:length(x)) _A_r_g_u_m_e_n_t_s: x: Number of events n: Number of trials score: Group score _V_a_l_u_e: An object of class '"htest"' with title, test statistic, p-value, etc. _N_o_t_e: This really should get integrated with 'prop.test' _A_u_t_h_o_r(_s): Peter Dalgaard _S_e_e _A_l_s_o: 'prop.test' _E_x_a_m_p_l_e_s: smokers <- c( 83, 90, 129, 70 ) patients <- c( 86, 93, 136, 82 ) prop.test(smokers, patients) prop.trend.test(smokers, patients) prop.trend.test(smokers, patients,c(0,0,0,1))