ck                package:pendensity                R Documentation

_C_a_l_c_u_l_a_t_i_n_g _t_h_e _a_c_t_u_a_l _w_e_i_g_h_t_s _c_k

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

     Calculating the actual weights ck for each factor combination of
     the covariates combinations.

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

     ck(penden.env, beta.val)

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

penden.env: Containing all information, environment of pendensity()

beta.val: actual parameter beta

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

     The weights in depending of the covariate 'x' are calculated as
     follows.

     c_k(x,beta)=frac{exp(Z(x)beta_k)}{sum_{j=-K}^{K}exp(Z(x)beta_j)}

     For estimations without covariates, Z doesn't appear in
     calculations.

     c_k(beta)=frac{exp(beta_k)}{sum_{k=-K}^{K}exp(beta_k)}

     Starting density calculation, the groupings of the covariates are
     indexed in the main program. The groupings are saved in
     'x.factor', the index which response belongs to which group is
     saved in 'Z.index'. Therefore, one can link to the rows in
     'x.factor' to calculate the weights 'ck'. 

     The needed values are saved in the environment.

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

     Returning the actual weights ck, depending on the actual parameter
     beta in a matrix with rows.

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

     Christian Schellhase <cschellhase@wiwi.uni-bielefeld.de>

_R_e_f_e_r_e_n_c_e_s:

     Penalized Density Estimation, Kauermann G. and Schellhase C.
     (2009), to appear.

