calculate.V_mean: Calculate the expected conditional variance term

Description Usage Arguments Value References See Also

View source: R/method.R

Description

This function calculates the expected conditional variance term Var(Xj |X-j)

Usage

1
2
3
4
5
6
7
8
9
calculate.V_mean(
  S,
  algo = "lasso",
  cv.rule = "min",
  out = NULL,
  Xmodel = "gaussian",
  sigma_X.list_S = NULL,
  verbose = FALSE
)

Arguments

S

a list of selected variables.

algo

a fitting algorithm (default: "lasso").

cv.rule

indicates which rule should be used for the predict function, either "min" (the usual rule) or "1se" (the one-standard- error rule); default: "min"). See the glmnet help files for details.

out

the fitted model from train.fun.

Xmodel

model of the covaraites (default: "gaussian").

sigma_X.list_S

a list of length |S|, with each element being the variance of the conditional distribution.

verbose

whether to show intermediate progress (default: FALSE).

Value

A vector of length |S|, whose element is the expected conditional variance term Var(Xj |X-j).

References

\insertRef

LZ-LJ:2020floodgate

See Also

Other methods: calulate.mu_Xk(), fg.inference.binary(), fg.inference(), fit.mu(), floodgate.binary(), floodgate(), inference_general()


LuZhangH/floodgate documentation built on Aug. 30, 2020, 2:10 a.m.