inst/doc/glmaag.R

## ------------------------------------------------------------------------
library(glmaag)
data(sampledata)
data(L0)
y <- sampledata$Y_Gau
x <- as.matrix(sampledata[, -(1:3)])
mod <- cv_glmaag(y, x, L0)

## ------------------------------------------------------------------------
L1 <- getS(x)

## ------------------------------------------------------------------------
mod <- cv_glmaag(y, x)

## ------------------------------------------------------------------------
mod <- cv_glmaag(y, x, est = F)

## ------------------------------------------------------------------------
L <- tune_network(y, x, L0, L1)@est

## ------------------------------------------------------------------------
mod <- cv_glmaag(y, x, L0, tune = T)

## ------------------------------------------------------------------------
mod <- ss_glmaag(y, x, L0, nsam = 5)

## ------------------------------------------------------------------------
coeffi <- coef(mod)
ypre <- predict(mod)
evaluate(ypre, y)
evaluate_plot(ypre, y)

Try the glmaag package in your browser

Any scripts or data that you put into this service are public.

glmaag documentation built on May 10, 2019, 9:04 a.m.