coef.cv.ahm {AHM} | R Documentation |
Coefficient method for the fitted cv.ahm object
Description
Coefficient method for the fitted cv.ahm object
Usage
## S3 method for class 'cv.ahm'
coef(object, metric = "mse", ...)
Arguments
object |
cv.ahm object |
metric |
"mse" or "aicc" |
... |
not used |
Value
a numerical vector
Examples
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]
powerh_path = round(seq(0.001,2,length.out =15),3)
num_major = 3; dist_minor = c(2,2,1)
res = cv.ahm (y, x, powerh_path=powerh_path, metric = "mse", num_major, dist_minor, type = "weak"
, alpha=0, lambda_seq=seq(0,5,0.01), nfolds=NULL, mapping_type = c("power"), rep_gcv=100)
coefficients = coef(res)
[Package AHM version 1.0.1 Index]