{
  "_id": "6a16bc79acfb0bcc41d87223",
  "Package": "fence",
  "Type": "Package",
  "Title": "Using Fence Methods for Model Selection",
  "Version": "1.0",
  "Date": "2017-05-29",
  "Author": "Jiming Jiang, Jianyang Zhao, J. Sunil Rao, Thuan Nguyen",
  "Maintainer": "Thuan Nguyen <nguythua@ohsu.edu>",
  "Description": "This method is a new class of model selection strategies,\nfor mixed model selection, which includes linear and\ngeneralized linear mixed models. The idea involves a procedure\nto isolate a subgroup of what are known as correct models (of\nwhich the optimal model is a member). This is accomplished by\nconstructing a statistical fence, or barrier, to carefully\neliminate incorrect models. Once the fence is constructed, the\noptimal model is selected from among those within the fence\naccording to a criterion which can be made flexible.\nReferences: 1. Jiang J., Rao J.S., Gu Z., Nguyen T. (2008),\nFence Methods for Mixed Model Selection. The Annals of\nStatistics, 36(4): 1669-1692. <DOI:10.1214/07-AOS517>\n<https://projecteuclid.org/euclid.aos/1216237296>. 2. Jiang J.,\nNguyen T., Rao J.S. (2009), A Simplified Adaptive Fence\nProcedure. Statistics and Probability Letters, 79, 625-629.\n<DOI:10.1016/j.spl.2008.10.014>\n<https://www.researchgate.net/publication/23991417_A_simplified_adaptive_fence_procedure>\n3. Jiang J., Nguyen T., Rao J.S. (2010), Fence Method for\nNonparametric Small Area Estimation. Survey Methodology, 36(1),\n3-11.\n<http://publications.gc.ca/collections/collection_2010/statcan/12-001-X/12-001-x2010001-eng.pdf>.\n4. Jiming Jiang, Thuan Nguyen and J. Sunil Rao (2011),\nInvisible fence methods and the identification of\ndifferentially expressed gene sets. Statistics and Its\nInterface, Volume 4, 403-415.\n<http://www.intlpress.com/site/pub/files/_fulltext/journals/sii/2011/0004/0003/SII-2011-0004-0003-a014.pdf>.\n5. Thuan Nguyen & Jiming Jiang (2012), Restricted fence method\nfor covariate selection in longitudinal data analysis.\nBiostatistics, 13(2), 303-314.\n<DOI:10.1093/biostatistics/kxr046>\n<https://academic.oup.com/biostatistics/article/13/2/303/263903/Restricted-fence-method-for-covariate-selection-in>.\n6. Thuan Nguyen, Jie Peng, Jiming Jiang (2014), Fence Methods\nfor Backcross Experiments. Statistical Computation and\nSimulation, 84(3), 644-662. <DOI:10.1080/00949655.2012.721885>\n<https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3891925/>. 7.\nJiang, J. (2014), The fence methods, in Advances in Statistics,\nHindawi Publishing Corp., Cairo. <DOI:10.1155/2014/830821>. 8.\nJiming Jiang and Thuan Nguyen (2015), The Fence Methods, World\nScientific, Singapore.\n<https://www.abebooks.com/9789814596060/Fence-Methods-Jiming-Jiang-981459606X/plp>.",
  "License": "BSD_2_clause + file LICENSE",
  "RoxygenNote": "6.0.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 09:39:04 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2017-07-01 07:02:18 UTC",
  "RemoteUrl": "https://github.com/cran/fence",
  "RemoteRef": "HEAD",
  "RemoteSha": "6e54e77537d211bee43ac8cfcfd2b5b0bea99bea",
  "MD5sum": "90e0987abbb2b0fde05d1c9bd3b4107d",
  "_user": "cran",
  "_type": "src",
  "_file": "fence_1.0.tar.gz",
  "_fileid": "168f4a879cc164de3cd6ec4215c93adc708ca71897732191820d4b895270edd5",
  "_filesize": 181529,
  "_sha256": "168f4a879cc164de3cd6ec4215c93adc708ca71897732191820d4b895270edd5",
  "_created": "2026-05-27T09:39:04.000Z",
  "_published": "2026-05-27T09:42:17.054Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78049550263,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7237120497"
    },
    {
      "job": 78049550292,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7237119233"
    },
    {
      "job": 78049039628,
      "time": 189,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7237067772"
    },
    {
      "job": 78049550298,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7237103998"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26503264951",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/fence",
  "_commit": {
    "id": "6e54e77537d211bee43ac8cfcfd2b5b0bea99bea",
    "author": "Thuan Nguyen <nguythua@ohsu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0\n",
    "time": 1498892538
  },
  "_maintainer": {
    "name": "Thuan Nguyen",
    "email": "nguythua@ohsu.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "compiler",
      "role": "Imports"
    },
    {
      "package": "sae",
      "role": "Imports"
    },
    {
      "package": "fields",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "snowfall",
      "role": "Imports"
    },
    {
      "package": "snow",
      "role": "Imports"
    },
    {
      "package": "pscl",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 183,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fence"
  },
  "_searchresults": 14,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fence.html",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2017-07-01"
    }
  ],
  "_exports": [
    "adaptivefence",
    "adaptivefence.fh",
    "fence.lmer",
    "fence.NF",
    "fence.sae",
    "IF.lm",
    "IF.lmer",
    "invisiblefence",
    "nonadaptivefence",
    "RF"
  ],
  "_datasets": [
    {
      "name": "kidney",
      "title": "kidney",
      "object": "kidney",
      "file": "kidney.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "obs",
        "y",
        "sqrt.D.",
        "x"
      ],
      "rows": 23,
      "table": true,
      "tojson": true
    },
    {
      "name": "X.lmer",
      "title": "X.lmer",
      "object": "X.lmer",
      "file": "X.lmer.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "V1",
        "I.col.2",
        "I.col.3a",
        "I.col.3b",
        "V5",
        "V6",
        "V7",
        "V8",
        "V9",
        "V10"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "adaptivefence",
      "title": "Adaptive Fence model selection",
      "topics": [
        "adaptivefence"
      ]
    },
    {
      "page": "adaptivefence.fh",
      "title": "Adaptive Fence model selection (Small Area Estmation)",
      "topics": [
        "adaptivefence.fh"
      ]
    },
    {
      "page": "fence.lmer",
      "title": "Fence model selection (Linear Mixed Model)",
      "topics": [
        "fence.lmer"
      ]
    },
    {
      "page": "fence.NF",
      "title": "Fence model selection (Nonparametric Model)",
      "topics": [
        "fence.NF"
      ]
    },
    {
      "page": "fence.sae",
      "title": "Fence model selection (Small Area Estmation)",
      "topics": [
        "fence.sae"
      ]
    },
    {
      "page": "IF.lm",
      "title": "Invisible Fence model selection (Linear Model)",
      "topics": [
        "IF.lm"
      ]
    },
    {
      "page": "IF.lmer",
      "title": "Invisible Fence model selection (Linear Mixed Model)",
      "topics": [
        "IF.lmer"
      ]
    },
    {
      "page": "invisiblefence",
      "title": "Invisible Fence model selection",
      "topics": [
        "invisiblefence"
      ]
    },
    {
      "page": "kidney",
      "title": "kidney",
      "topics": [
        "kidney"
      ]
    },
    {
      "page": "nonadaptivefence",
      "title": "Nonadaptive Fence model selection",
      "topics": [
        "nonadaptivefence"
      ]
    },
    {
      "page": "plot.AF",
      "title": "Plot Adaptive Fence model selection",
      "topics": [
        "plot.AF"
      ]
    },
    {
      "page": "plot.NF",
      "title": "Plot Nonparametric Fence model selection",
      "topics": [
        "plot.NF"
      ]
    },
    {
      "page": "RF",
      "title": "Adaptive Fence model selection (Restricted Fence)",
      "topics": [
        "RF"
      ]
    },
    {
      "page": "summary.AF",
      "title": "Summary Adaptive Fence model selection",
      "topics": [
        "summary.AF"
      ]
    },
    {
      "page": "summary.NF",
      "title": "Summary Nonparametric Fence model selection",
      "topics": [
        "summary.NF"
      ]
    },
    {
      "page": "X.lmer",
      "title": "X.lmer",
      "topics": [
        "X.lmer"
      ]
    }
  ],
  "_rundeps": [
    "boot",
    "cli",
    "cpp11",
    "dotCall64",
    "farver",
    "fields",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "maps",
    "MASS",
    "Matrix",
    "minqa",
    "nlme",
    "nloptr",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "sae",
    "scales",
    "snow",
    "snowfall",
    "spam",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 1.146128035678238,
  "_indexed": true,
  "_nocasepkg": "fence",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-27T09:41:12.000Z",
      "distro": "noble",
      "commit": "6e54e77537d211bee43ac8cfcfd2b5b0bea99bea",
      "fileid": "5d9b92ee644962c0f8e91dbb126b7f0b6980192f2897e15a3e3b1a91391552d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26503264951"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-27T09:41:10.000Z",
      "distro": "noble",
      "commit": "6e54e77537d211bee43ac8cfcfd2b5b0bea99bea",
      "fileid": "64c7659ec097b748008868545c7f07a7877c66c5e590b9403405bb64ede5d720",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26503264951"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0",
      "date": "2026-05-27T09:41:13.000Z",
      "commit": "6e54e77537d211bee43ac8cfcfd2b5b0bea99bea",
      "fileid": "109552ac2b052c7331dc83125a9d03774218eb3ebe890456135e502a5b2b830e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26503264951"
    }
  ]
}