like                 package:cwhtool                 R Documentation

_P_r_e_p_a_r_e _n_e_w _d_a_t_a _f_o_r _p_r_e_d_i_c_t_i_o_n

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

     Prepare data to conform to structure of data used in a model, for
     use as new data

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

      like(X, ...)

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

       X: 

     ...: 

     {List of other arguments to model to be used for prediction}

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

     Data usable for  'predict' which are now compatible, all factors
     have the same level set, and so forth.

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

     Peter Dalgaard, p.dalgaard@biostat.ku.dk

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

     ## Not run: 
      foo <- lm(formula, data=foe)
      fie <- like(foe, sex="F", age=20:25, smoke="1-7")
      predict(foo, newdata=fie)
      
     ## End(Not run)

