Learn R Programming

⚠️There's a newer version (1.1.6) of this package.Take me there.

gausscov (version 0.1.1)

The Gaussian Covariate Method for Variable Selection

Description

Given the standard linear model the traditional way of deciding whether to include the jth covariate is to apply the F-test to decide whether the corresponding beta coefficient is zero. The Gaussian covariate method is completely different. The question as to whether the beta coefficient is or is not zero is replaced by the question as to whether the covariate is better or worse than i.i.d. Gaussian noise. The P-value for the covariate is the probability that Gaussian noise is better. Surprisingly this can be given exactly and it is the same a the P-value for the classical model based on the F-distribution. The Gaussian covariate P-value is model free, it is the same for any data set. Using the idea it is possible to do covariate selection for a small number of covariates 25 by considering all subsets. Post selection inference causes no problems as the P-values hold whatever the data. The idea extends to stepwise regression again with exact probabilities. In the simplest version the only parameter is a specified cut-off P-value which can be interpreted as the probability of a false positive being included in the final selection. For more information see the website below and the accompanying papers: L. Davies and L. Duembgen, "Covariate Selection Based on a Model-free Approach to Linear Regression with Exact Probabilities", 2020, . L. Davies, "Lasso, Knockoff and Gaussian covariates: A comparison", 2018, .

Copy Link

Version

Install

install.packages('gausscov')

Monthly Downloads

518

Version

0.1.1

License

GPL-3

Maintainer

Laurie Davies

Last Published

April 30th, 2021

Functions in gausscov (0.1.1)

fgentrig

generation of sine and cosine functions
frrgp

Robust regression using Huber's psi-function or Hampel's three part redescending psi-function providing P-values
frrg

Robust regression using Huber's psi-function or Hampel's redescending psi-function without P-values
fgr1st

Calculates an independence graph using stepwise selection
fgr2st

Calculates an independence graph using repeated stepwise selection
mel-temp

Melbourne minimum temperature
ly.original

Leukemia data
fpval

Calculates the regression coefficients, the P-values and the standard P-values for the chosen subset ind
fsimords

Simulates the number of false positives for given dimensions (n,k) and given order statistics nu
frmch

Robust selection of covariates using Huber's psi-funtion or Hampel's redescending psi-function based on all subsets
lx.original

Leukemia data
fselect

Selects the subsets specified by fmch and fmch1.
frst

Robust stepwise selection of covariates
flag

Calculation of lagged covariates
redwine

Redwine data
fmch

Calculates all subsets where each included covariate is significant.
snspt

Sunspot data
decode

Decodes the number of a subset selected by fmch to give the covariates
decomp

decompose a given interaction ic into its component parts
boston

Boston data
f1st

Stepwise selection of covariates
dentx

Dental data, the 13 covariates, the dependent variable ist denty
abcq

American Business Cycle
fgeninter

Generation of interactions
denty

Dental data, hardness of gold fillings, the corresponding 13 covariates are dentx
f2st

Repeated stepwise selection of covariates