Skip to content

❗ This is a read-only mirror of the CRAN R package repository. DBModelSelect — Distribution-Based Model Selection. Homepage: https://github.com/shkoeneman/DBModelSelect

Notifications You must be signed in to change notification settings

cran/DBModelSelect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DBModelSelect

R-CMD-check

The goal of DBModelSelect is to provide a package for using various distribution-based model selection techniques.

Installation

You can install the development version of DBModelSelect from GitHub with:

# install.packages("devtools")
devtools::install_github("shkoeneman/DBModelSelect")

Example

This is a basic example which shows you how to use various features of the package:

library(DBModelSelect)

# generate some data
set.seed(5122023)
data <- data.frame(s = rnorm(200), t = rnorm(200))
data$y <- data$s + rnorm(200)

# perform all subsets regression
model_list <- FitLMSubsets(response = "y", data = data, intercept = TRUE, force_intercept = FALSE)

#determine whether largest candidate model shows lack of fit
BootGOFTestLM(model_list[[length(model_list)]], data = data)

# perform model selection
model_select <- StandICModelSelect(model_list, IC = "AIC")

# print and plot results of model selection
print(model_select)
plot(model_select)

About

❗ This is a read-only mirror of the CRAN R package repository. DBModelSelect — Distribution-Based Model Selection. Homepage: https://github.com/shkoeneman/DBModelSelect

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages