styles                package:memisc                R Documentation

_F_o_r_m_a_t_t_i_n_g _S_t_y_l_e_s _f_o_r _C_o_e_f_f_i_c_i_e_n_t_s _a_n_d _F_a_c_t_o_r _C_o_n_t_r_a_s_t_s

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

     Methods for setting and getting templates for formatting model
     coefficients and summaries for use in 'mtable'.

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

     setCoefTemplate(...)
     getCoefTemplate(style)
     getSummaryTemplate(x)
     setSummaryTemplate(...)
       

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

     ...: sevaral tagged arguments; in case of 'setCoefTemplate' the
          tags specify the 'coef.style's, in case of
          'setSummaryTemplate' they specify model classes. The
          associated values are templates.

   style: a character string with the name of a coefficient style, if
          left empty, all coefficient templates are returned.  

       x: a model or a name of a model class, for example '"lm"' or
          '"glm"'; if left empty, all summary templates are returned.

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

     The style in which model coefficients are formatted by 'mtable' is
     by default selected from the 'coef.style' setting of 'options',
     "factory-fresh" setting being 'options(coef.style="default")'.

     The appearance of factor levels in an 'mtable' can be influenced
     by the 'factor.style' setting of 'options'. The "factory-fresh"
     setting is 'options(factor.style="($f): ($l)")', where '($f)'
     stands for the factor name and '($l)' stands for the factor level.
     In case of treatment contrasts, the baseline level will also
     appear in an 'mtable' separated from the current factor level by
     the 'baselevel.sep' setting of 'options'. The "factory-fresh"
     setting is 'options(baselevel.sep="-")',

     Users may specify additional coefficient styles by a call to
     'setCoefTemplate'. In order to adapt 'mtable' to other model
     classes, users need to set a template for model summaries via a
     call to 'setSummaryTemplate'.

