Skip to content
fence needs sae, which CRAN will archive unless its check problems are fixed by Nov 2.

Using Fence Methods for Model Selection

0packages depend
2.7Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

This method is a new class of model selection strategies, for mixed model selection, which includes linear and generalized linear mixed models. The idea involves a procedure to isolate a subgroup of what are known as correct models (of which the optimal model is a member). This is accomplished by constructing a statistical fence, or barrier, to carefully eliminate incorrect models. Once the fence is constructed, the optimal model is selected from among those within the fence according to a criterion which can be made flexible. References: 1. Jiang J., Rao J.S., Gu Z., Nguyen T. (2008), Fence Methods for Mixed Model Selection. The Annals of Statistics, 36(4): 1669-1692. DOI:10.1214/07-AOS517 https://projecteuclid.org/euclid.aos/1216237296. 2. Jiang J., Nguyen T., Rao J.S. (2009), A Simplified Adaptive Fence Procedure. Statistics and Probability Letters, 79, 625-629. DOI:10.1016/j.spl.2008.10.014 https://www.researchgate.net/publication/23991417_A_simplified_adaptive_fence_procedure 3. Jiang J., Nguyen T., Rao J.S. (2010), Fence Method for Nonparametric Small Area Estimation. Survey Methodology, 36(1), 3-11. http://publications.gc.ca/collections/collection_2010/statcan/12-001-X/12-001-x2010001-eng.pdf. 4. Jiming Jiang, Thuan Nguyen and J. Sunil Rao (2011), Invisible fence methods and the identification of differentially expressed gene sets. Statistics and Its Interface, Volume 4, 403-415. http://www.intlpress.com/site/pub/files/_fulltext/journals/sii/2011/0004/0003/SII-2011-0004-0003-a014.pdf. 5. Thuan Nguyen & Jiming Jiang (2012), Restricted fence method for covariate selection in longitudinal data analysis. Biostatistics, 13(2), 303-314. DOI:10.1093/biostatistics/kxr046 https://academic.oup.com/biostatistics/article/13/2/303/263903/Restricted-fence-method-for-covariate-selection-in. 6. Thuan Nguyen, Jie Peng, Jiming Jiang (2014), Fence Methods for Backcross Experiments. Statistical Computation and Simulation, 84(3), 644-662. DOI:10.1080/00949655.2012.721885 https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3891925/. 7. Jiang, J. (2014), The fence methods, in Advances in Statistics, Hindawi Publishing Corp., Cairo. DOI:10.1155/2014/830821. 8. Jiming Jiang and Thuan Nguyen (2015), The Fence Methods, World Scientific, Singapore. https://www.abebooks.com/9789814596060/Fence-Methods-Jiming-Jiang-981459606X/plp.

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Thuan Nguyen <nguythua@ohsu.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Jiming",
                      family = "Jiang",
                      role = "aut"),
               person(given = "Jianyang",
                      family = "Zhao",
                      role = "aut"),
               person(given = c("J.", "Sunil"),
                      family = "Rao",
                      role = "aut"),
               person(given = "Thuan",
                      family = "Nguyen",
                      role = c("aut", "cre"),
                      email = "nguythua@ohsu.edu"))
as necessary.

CRAN check page ↗

Slowest check: 2.8 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.0
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
16
Examples that run
40%4 run in a plain check · 6 never run
Exported functions with examples
100%
Documented parameters
95%
Return-value docs
100%
Help pages citing references
63%

Downloads

2.7K
CRAN downloads in the past year
Rank #16,454 · ~7/day · ~226/mo
Daily download trend is not available in this view yet.
27930 days
75890 days
2.7K1 year
Compare downloads with other packages →
Also on78 r2u2 autocran

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing fence adds 32 packages (17 with compiled code, 35 MB of source tarballs). Heaviest: ggplot2 6.0 MB, lme4 4.1 MB, fields 3.9 MB.

Depends (1)
R >= 2.10
Imports (10)
MASSstatslme4ggplot2compilersaefieldsgrDevicessnowfallsnow
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Dependencies facing archival

CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.

  • saefix by Nov 2
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (from the free-text Author field) (4)

Maintainer since 1.0 (2017)

Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0Latest
    2017-07-01 · current release
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-07-01
Total releases
1 / 9 yrs
License
BSD_2_clause + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
13 KB / 3 files
Download size
36 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("fence")

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for fence version 1.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy