Description Usage Arguments Details Value Author(s) References
Calculating the actual weights ck for each factor combination of the covariates combinations.
1 | ck(penden.env, beta.val)
|
penden.env |
Containing all information, environment of pendensity() |
beta.val |
actual parameter beta |
The weights in depending of the covariate 'x' are calculated as follows.
c_k(x,β)=\frac{\exp(Z(x)β_k)}{∑_{j=-K}^{K}\exp(Z(x)β_j)}
For estimations without covariates, Z doesn't appear in calculations.
c_k(β)=\frac{\exp(β_k)}{∑_{k=-K}^{K}\exp(β_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.
Returning the actual weights ck, depending on the actual parameter beta in a matrix with rows.
Christian Schellhase <cschellhase@wiwi.uni-bielefeld.de>
Density Estimation with a Penalized Mixture Approach, Schellhase C. and Kauermann G. (2012), Computational Statistics 27 (4), p. 757-777.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.