gof             package:exactLoglinTest             R Documentation

_G_o_o_d_n_e_s_s-_o_f-_f_i_t _f_u_n_c_t_i_o_n _f_o_r _P_o_i_s_s_o_n _l_o_g-_l_i_n_e_a_r _m_o_d_e_l_s

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

     A goodness-of-fit function for Poisson log-linear models as
     required by 'mcexact'.

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

     gof(y = NULL, mu = NULL, rowlabels = F)

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

       y: counts

      mu: mean

rowlabels: labels of returned goodness-of-fit statistics

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

     This function is a useful shell for writing alternative
     goodness-of-fit statistics for 'mcexact'.

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

     If 'rowlabels = TRUE', then 'gof' returns only the labels of the
     goodness of fit statistics. Otherwise it returns the actual values
     as a vector.

_N_o_t_e:

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

     Brian S. Caffo

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

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

     'mcexact'

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

     #data(residence)
     #get fitted values
     #mu <- glm(residence$y ~ residence$x, family = poisson)$fit
     #gof(residence$y, mu)
     #gof(rowlabels = TRUE)

