nonadaptivefence: Nonadaptive Fence model selection

Description Usage Arguments Value Author(s) References Examples

View source: R/methodNAF.R

Description

Nonadaptive Fence model selection

Usage

1
nonadaptivefence(mf, f, ms, d, lf, pf, cn)

Arguments

mf

function for fitting the model

f

formula of full model

ms

list of formula of candidates models

d

data

lf

measure lack of fit (to minimize)

pf

model selection criteria, e.g., model dimension

cn

given a specific c value

Value

models

list all model candidates in the model space

lack_of_fit

list a vector of Qs for all model candidates

formula

list the model of the selected parsimonious model

sel_model

list the selected (parsimonious) model given the adaptive c value

Author(s)

Jiming Jiang Jianyang Zhao J. Sunil Rao Thuan Nguyen

References

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
require(fence)

#### Example 1 #####
data(iris)
full = Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width + (1|Species)
test_naf = fence.lmer(full, iris, fence = "nonadaptive", cn = 12)
test_naf$sel_model

## End(Not run)

fence documentation built on May 1, 2019, 11:32 p.m.