Description Usage Arguments Details Value See Also Examples
Frequentist model averaging using smoothed AIC, smoothed BIC, Mallow's model averaging or Jackknife model averaging.
1 2 | FMA(weighting.method, allMods, X, y, submodels,
include.intercept = 1, solver = "solve.QP")
|
weighting.method |
One of |
allMods |
The list returned by |
X |
Matrix of independent variables. |
y |
Vector of the dependent variable. |
submodels |
Either one of |
include.intercept |
Flag for inclusion of intercept. Default is 1 for inclusion. |
solver |
The solver to use for quadratic programming. One of |
Either one must supply the function with the allMods
argument, or the raw data and what models to average over. If one gives the function allMods
, then only the weighting.method needs to be specified. If allMods
is not supplied, then one must give the function the raw data and the selection matrix so that it can call EstAllModels
. The first alternative is to be preferred if one will use multiple averaging techniques for the same data. See the examples.
Returns a vector with the weights.
EstAllModels
,
Generate.S
, solve.QP
, ipop
, LowRankQP
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## First alternative: supply allMods
## Not run: myAllMods <- EstAllModels(X = Xdata,
Xnew = Xnewdata, y = ydata, s = smatrix)
## End(Not run)
## Not run: wAIC <- FMA("AIC", allMods = myAllMods)
## Not run: wJMA <- FMA("JMA", allMods = myAllMods)
## Second alternative: let the function call EstAllModels
## Not run: wAIC <- FMA("AIC", X = Xdata,
Xnew = Xnewdata, y = ydata, submodels = "nested")
## End(Not run)
## Not run: wJMA <- FMA("JMA", X = Xdata,
Xnew = Xnewdata, y = ydata, submodels = "nested")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.