I worry whether you understand what is happening when you lump all the
"unwanted levels" into a reference level. Be sure to watch the
intercept as you compare models. It will be some sort of adjusted mean
for whatever cases are in the reference levels of that and teh
reference levels of any
My model has several independent and categorical variables. I would not like
to subset them as other variables in the data are useful. I just wanted to
set some coefficients for some levels in a single category.
A prototype of it can be something like y + constant *
(cat.variable1-Level1) ~ x1 + x2
On Nov 29, 2009, at 11:23 AM, sr danda wrote:
Hi,
I am a new R user. I am using it develop regression models with
categorical
variables.
Is there a way to force some regression coefficients to be zero for
some of
the values in a categorical variable (with 12 factor levels)?
I am recodin
Hi,
I am a new R user. I am using it develop regression models with categorical
variables.
Is there a way to force some regression coefficients to be zero for some of
the values in a categorical variable (with 12 factor levels)?
I am recoding the values to the default value (1st in the order of d
4 matches
Mail list logo