Modelconf
Estimation of Model Confidence Sets in R
Install / Use
/learn @nielsaka/ModelconfREADME
Model Confidence Sets
The R package modelconf lets you estimate model confidence sets (MCS).
These sets account for the uncertainty surrounding model choice.
About
This repository offers an implementation written in R of the algorithms for estimating model confidence sets and which were developed by Hansen, Lunde and Nason (2011) in their Econometrica paper. Model confidence sets are sets of models that are expected to contain all best model(s) with a given probability. Interpretation of the confidence set is therefore analogous to confidence intervals for population parameters. The notion of a confidence set is particularly useful in situations where competing model specifications are available and it is uncertain which model will be appropriate in a certain context.
The algorithm comes in two flavours, an in-sample and an out-of-sample version. Both of these are implemented here.
Alternative
There is another implementation of these algorithms available on CRAN via the MCS package. Maybe some of the code from here can be merged to over there or results from the two packages could be compared for correctness and efficiency.
Installation
Straight from github via devtools::install_github("nielsaka/modelconf").
Local build
Locally, the package can be installed using R CMD INSTALL /path/to/modelconf
on the command line. If the package has been installed before, it
might be necessary to enable the pre-clean option. With devtools, use
options(devtools.install.args = "--preclean") to remove previously built
binary files or R CMD INSTALL --preclean /path/to/modelconf on the command
line.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
