formparser               package:pgam               R Documentation

_R_e_a_d _t_h_e _m_o_d_e_l _f_o_r_m_u_l_a _a_n_d _s_p_l_i_t _i_t _i_n_t_o _t_h_e     _p_a_r_a_m_e_t_r_i_c _a_n_d _n_o_n_p_a_r_a_m_e_t_r_i_c _p_a_r_t_i_t_i_o_n_s

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

     Read the model formula and split it into two new ones concerning
     the parametric and nonparametric partitions of the predictor.

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

     formparser(formula, parent.level=1)

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

 formula: object representing the model formula. R standard for GLM
          models

parent.level: an environment to be used as the parent of the
          environment created

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

     This function extracts all the information in the model formula.
     Most important, split the model into two parts regarding the
     parametric nature of the model. A model can be specified as
     following:

            Y~f(sf_{r})+V1+V2+V3+g(V4,df_{4})+g(V5,df_{5})

     where sf_{r} is a seasonal factor with period r and df_{i} is the
     degree of freedom of the smoother of the _i_-th covariate.
     Actually, two new formulae will be created:

                     ~sf_{1}+...+sf_{r}+V1+V2+V3

     and

                                ~V4+V5

     These two formulae will be used to build the necessary datasets
     for model estimation. _Dummy_ variables reproducing the seasonal
     factors will be created also.

     Models without explanatory variables must be specified as in the
     following formula

                                Y~NULL

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

     List containing the information needed for model fitting.

_N_o_t_e:

     This function is not intended to be called directly.

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

     Washington Leite Junger wjunger@ims.uerj.br

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

     'pgam', 'f', 'g'

