Transformations            package:party            R Documentation

_F_u_n_c_t_i_o_n _f_o_r _D_a_t_a _T_r_a_n_s_f_o_r_m_a_t_i_o_n_s

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

     Transformations of Response or Input Variables

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

     ptrafo(data, numeric_trafo = id_trafo, 
         factor_trafo = function(x) model.matrix(~ x - 1), 
         surv_trafo = logrank_trafo, 
         var_trafo = NULL)

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

    data: an object of class 'data.frame'.

numeric_trafo: a function to by applied to 'numeric'  elements of
          'data' returning a matrix with 'nrow(data)' rows and an
          arbitrary number of columns.

factor_trafo: a function to by applied to 'factor' elements of 'data'
          returning a matrix with 'nrow(data)' rows and an arbitrary
          number of columns (usually a dummy or contrast  matrix).

surv_trafo: a function to by applied to  elements of class 'Surv' of
          'data' returning a  matrix with 'nrow(data)' rows and an
          arbitrary number of columns.

var_trafo: an optional named list of functions to be applied to the
          corresponding variables in 'data'.

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

     'trafo' applies its arguments to the elements of 'data' according
     to the classes of the elements. See 'trafo' for more documentation
     and examples.

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

     A named matrix with 'nrow(data)' rows and  arbitrary number of
     columns.

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

     ### rank a variable
     ptrafo(data.frame(y = 1:20), numeric_trafo = rank)

