mapping_function: Mapping_function is a function to add the functional...

Description Usage Arguments Value Examples

View source: R/ahm.R

Description

Mapping_function is a function to add the functional coefficients of major components in front of minor components terms

Usage

1
2
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

1
2
3
4
5
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)

AHM documentation built on July 28, 2019, 9:02 a.m.