[R] Apply sensitivity library to dummy variables
Chih-Lin Chi
chihlin.chi at gmail.com
Thu Aug 4 19:52:32 CEST 2011
I am using SRC function in the sensitivity library. The independent
variables (X) are a few dummy variables and the dependent variable (y)
is numeric, ranged from 0,18 to 0.84. Example of independent variables
are red coded as [0,0,0,1], green [0,0,1,0], blue [0,1,0,0], and
yellow [1,0,0,0]. Error message occurs "Error in if (const(t,
min(1e-08, mean(t, na.rm = TRUE)/1e+06))) { : missing value where
TRUE/FALSE needed". Any suggestion?
If I choose not to code red [0,0,0], and code only three groups, green
[0,0,1], blue [0,1,0], and yellow [1,0,0]. SRC works. Do I interpret
the result like "compared to red, the SRC score for green is 0.8"?
Thanks for your help!
More information about the R-help
mailing list