Learn R Programming

AHM (version 1.0.1)

coef.ahm: Coefficient method for the fitted ahm object

Description

Coefficient method for the fitted ahm object

Usage

# S3 method for ahm
coef(object, ...)

Arguments

object

ahm object

...

not used

Value

a numerical vector

Examples

Run this code
# NOT RUN {
data("pringles_fat")
data_fat = pringles_fat
h_tmp = 1.3
x = data_fat[,c("c1","c2","c3","x11","x12","x21","x22")]
y = data_fat[,1]
out = ahm (y, x, num_major = 3, dist_minor = c(2,2,1),
           type = "weak", alpha=0, lambda_seq=seq(0,5,0.01), nfold = NULL,
           mapping_type = c("power"), powerh = h_tmp,
           rep_gcv=100)
coef(out)

# }

Run the code above in your browser using DataLab