Hi,
I have four categorical variables (A, B, C and D) in column, and
around 1,000 observations. Variables "B", "C" and "D" are covariates,
and variable "A" the variable to explain. I computed crosstables for
A-B, A-C and A-D: each chi-square are significant. Now I would like
to perform a model with all the covariates in the same time.
I think that glm should be a good choice. But I cannot find the
good family/link option: "poisson" family seems to be only for
counts (this is not the case here) and "binomial" family (with
"logit" link) is only for binary outcomes (all my variables have more
than 2 levels).
The aim is to analyze the joint impact of the three covariates, and
maybe to determine the covariate the "most related" to A.
Another question still remains to me: how can I create a new file
with five columns, the first fourth presenting all the possible combinations
of the levels of my four variables (i.e. one combination by
line), and the fifth column (say E) containing the amount of
observations for each combination?
Thank you in advance,
Tristan Lorino
--
Laboratoire Central des Ponts et Chaussées
[Division ESAR ? Section AGR]
Route de Bouaye BP 4129
44341 Bouguenais Cedex
France
Tél. 33 (0)2 40 84 56 18
|