roiGet: Managing list of roiGls object

Description Usage Arguments Examples

Description

A list of roiGLS model output. The following functions extract the common elements, the predicted values and the coefficients.

Usage

1
2
3
4
5
roiGet(l, type)

roiPred(l, se = FALSE)

roiCoef(l)

Arguments

l

List of roiGls output

type

String that provides the element to extract. One of 'nk', 'sig2', 'gcv','avp','avpo','vp0' or 'formula.

se

Should the standard error be returned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
xd <- ungaugedDemoData()

mdls <- list()

## Perform leave-one-out cross validation
for(kk in 1:3){
  mdls[[kk]] <- roiGls( y ~ x,
              x = xd$data[-kk,], x0 = xd$data[kk,],
              S = xd$S[-kk,-kk], distance = xd$distance[kk,-kk],
              nk = seq(20,50,10))
}

roiCoef(mdls)

roiGet(mdls, 'vp0')

martindurocher/floodRFA documentation built on June 5, 2019, 8:44 p.m.