Mapping_function is a function to add the functional coefficients of major components in front of minor components terms
mapping_function(x, num_major = 3, dist_minor = C(2, 2, 1), mapping_type = c("power"), powerh = 0)
x
: data.frame Note the column names of the x should be in the order of major components, minor components, and no interactions are needed.num_major
: number of major componentsdist_minor
: the allocation of number of minor components nested under major componentsmapping_type
: the form of the coefficient function of major components in front of corresponding minor terms. Currently only support "power"powerh
: the power parameter used for the power functiondata frame
data("pringles_fat") data_fat = pringles_fat h_tmp = 1.3 x = data_fat[,c("c1","c2","c3","x11","x12","x21","x22")] mapping_function(x=x, num_major=3, dist_minor=c(2,2,1), mapping_type = c("power"), powerh=0)
Useful links