Description Usage Arguments Details Value Examples
This function is basically a wrapper for function
robustlogrm
to fit a logistic regression model on each value
of an input variable of the data set.
1 |
formula |
an object of class |
data |
data frame, list or environment (or object coercible by
|
id.vars |
names of the identification variables for each unit in the
input data set |
cond |
parameter indicating the model to adjust according to:
|
suffix |
parameter for the name of the edited version of the variable under analysis (see 'Details'). |
... |
extra arguments to be used to form the default control argument. |
Regarding formula
see robustlogrm
. Although the
target variables for models with cond=''
, on the one hand, and with
cond=0,1
, on the other hand, are different (edited in the first case
and raw in the latter), it is not necessary to specify the suffix in the
formula.
The input data set data
must contain at least the following colums:
id.vars
: columns with the identification variables of each unit.
raw target variable: column with the raw values of the variable under
analysis. This is the LHS variable of formula
.
edited target variable: column with the edited values of the variable
under analysis. The name must be the same as that of the raw target variable
with a suffix specified in the parameter suffix
.
regressors: columns corresponding to the variables specified in the RHS
of formula
.
A data.table with two colums named with the LHS
variable of formula
and fit
. The first column contains every
single value of this variable in the input data set data
. The second
column contains a glm
object with the fit of the model for each
variable value.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.