bws2Model {RcmdrPlugin.BWS2} | R Documentation |
Fit a model to BWS2 data.
This dialog box fits a conditional logit model to the data set for BWS2
analysis using the functions clogit
in survival
and gofm
in support.CEs.
This dialog box is activated if the data set for BWS2 analysis created in
the ‘Create Data Set for BWS2 Analysis
’ dialog box is selected
as the active data set.
For details on the results of this dialog box, refer to helps for functions
clogit
and gofm
.
GUI elements of this dialog box are as follows.
Name for model
: An R object name into which the results of
a fitted model obtained through this dialog box are stored.
The default name ‘BWS2model.x
’, where x
indicates
the integer number assigned automatically from 1
, can be changed
following R's rules for naming objects.
Response variable
: A variable containing responses to BWS2
questions in the active data set.
This variable name is fixed as ‘RES
’, which cannot be
changed by users (A fixed variable is colored in green).
Attribute variables
: Attribute variables used in the model.
Select zero or more variables from this list box.
Level variables
: Level variables used in the model.
Select appropriate variables from this list box.
Covariates
: Variables used as covariates in the model.
Select zero or more variables from this list box.
Stratification variable
: A variable for identifying each
combination of respondents and BWS2 questions.
This variable name is fixed as ‘STR
’.
Subset expression
: A logical expression for specifying
a subset of the observations in the active dataset to be used for
the fitting.