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

