Learn R Programming

qut (version 2.2)

sigmaqut: Estimation of \(\sigma\) based on the Quantile Universal Threshold

Description

Estimation of \(\sigma\) using a two layer estimation scheme as in Refitted Cross Validation, by performing variable selection with the Quantile Universal Threshold, and obtaining the two estimations of sigma with the ordinary least squares estimator.

Usage

sigmaqut(y, X, estimator = "unbiased", intercept = TRUE, 
alpha.level = "default", M = 1000, qut.standardize = TRUE, 
penalty.factor = rep(1, p), offset = NULL, ...)

Arguments

y

response variable. Quantitative for family=gaussian, or family=poisson (non-negative counts). For family=binomial should be a factor with two levels.

X

input matrix, of dimension n x p; each row is an observation vector.

estimator

type of estimation of sigma when sigma = 'qut'. It can be equal to 'unbiased' (standard unbiased formula), or 'mle' (maximum likelihood formula).

intercept

should intercept(s) be fitted (default=TRUE) or set to zero (FALSE).

alpha.level

level, such that quantile \(\tau=(1-\)alpha.level\()/\gamma\). Default is \(1/(\sqrt{\pi\log(p)})\).

M

number of Monte Carlo Simulations to estimate the distribution \(\Lambda\). Default is 1000.

qut.standardize

standardize matrix X with a quantile-based standardization. Default is TRUE.

penalty.factor

separate penalty factors can be applied to each coefficient. As in qut.

offset

a vector of length n that is included in the linear predictor. As in qut.

other glmnet options.

Value

Estimator of \(\sigma\)