Description Usage Arguments Value Examples
Generation of the S matrix.
1 | Generate.S(Fix.X, Potential.X, avertype = "all")
|
Fix.X |
Number of fixed Xs, i.e. variables which should always be included. |
Potential.X |
Number of potential variables, i.e. variables which may or may not be included. |
avertype |
Type of averaging to be done. Can be either |
Returns a selection matrix.
1 2 3 4 5 | ## all nested models with 5 variables, first variable always included
smatrix <- Generate.S(Fix.X = 1, Potential.X = 5, avertype = "nested")
## use this together with EstAllModels to estimate all the submodels efficiently
## Not run: allMods <- EstAllModels(X = Xdata, Xnew = Xnewdata, y = ydata, s = smatrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.