mapping_function {AHM} | R Documentation |
Mapping_function is a function to add the functional coefficients of major components in front of minor components terms
Description
Mapping_function is a function to add the functional coefficients of major components in front of minor components terms
Usage
mapping_function(x, num_major = 3, dist_minor = C(2, 2, 1),
mapping_type = c("power"), powerh = 0)
Arguments
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 components |
dist_minor |
the allocation of number of minor components nested under major components |
mapping_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 function |
Value
data frame
Examples
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)
[Package AHM version 1.0.1 Index]