renumerate               package:MASS               R Documentation

_C_o_n_v_e_r_t _a _F_o_r_m_u_l_a _T_r_a_n_s_f_o_r_m_e_d _b_y '_d_e_n_u_m_e_r_a_t_e'

_D_e_s_c_r_i_p_t_i_o_n:

     'denumerate' converts a formula written using the conventions of
     'loglm' into one that 'terms' is able to process.  'renumerate'
     converts it back again to a form like the original.

_U_s_a_g_e:

     renumerate(x)

_A_r_g_u_m_e_n_t_s:

       x: A formula, normally as modified by 'denumerate'. 

_D_e_t_a_i_l_s:

     This is an inverse function to 'denumerate'.  It is only needed
     since 'terms' returns an expanded form of the original formula
     where the non-marginal terms are exposed.  This expanded form is
     mapped back into a form corresponding to the one that the user
     originally supplied.

_V_a_l_u_e:

     A formula where all variables with names of the form '.vn', where
     'n' is an integer, converted to numbers, 'n', as allowed by the
     formula conventions of 'loglm'.

_S_e_e _A_l_s_o:

     'denumerate'

_E_x_a_m_p_l_e_s:

     denumerate(~(1+2+3)^3 + a/b)
     ## ~ (.v1 + .v2 + .v3)^3 + a/b
     renumerate(.Last.value)
     ## ~ (1 + 2 + 3)^3 + a/b

