Description Usage Arguments Value
View source: R/tryingNewRegressorByVal.R
tryingNewRegressorByVal
computes all possible model fits for
regformula
, taking into account a new additional regressor among those
existing in listRegressors
.
Also, tryingNewRegressorByVal
compares all fits and chooses the best model,
according to the global efficiency indicator. For the selected model, model fits for
prior probabilities is returned.
1 2 3 4 5 6 7 8 9 10 | tryingNewRegressorByVal(
regformula,
listRegressors,
data,
targetValue,
id.vars,
designWeight,
parms,
suffix
)
|
regformula |
an object of class |
listRegressors |
an object of class character containing the name of all regressors to possibly be considered in the model fit. |
data |
data frame, list or environment (or object coercible by
|
targetValue |
value of the regressand (an object of class character). |
id.vars |
names of the identification variables for each unit in the
input data set |
designWeight |
an object of class character containing the design weight. |
parms |
input parameters required for the process: "maxit" for model fits, "edEffInd" is a function used to define the global efficiency indicator, "priorBin" contains the number of units in which the data is divided to construct the mesh of points to calculate the efficiency indicator. |
suffix |
parameter for the name of the edited version of the variable under analysis. |
list containing three elements: The first one is a list with models fits for prior probabilities, description of the model to be fitted, value of the regressand and global efficiency indicator obtained for this specific value of the regressand. The second one contains a symbolic description of the best model chosen among all models tried. Last one element contains all models tried and the global efficiency indicator for each one.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.