Trouble defining the "term" variable while using effect() of Effects package - R
===

[Effects][1] package is basically a package to plot Generalized Linear Models, Binomial, Multinomial, and Ordered Logistic Regression Models. It enables you to plot the effect of predictors. (From my limited knowledge)

I have been attempting to use the `effect()` function to plot multinomial regression effects, however defining the `term` variable is problematic. Consider the iris data, if I wanted to plot the multinom effects one would perform the following:

    library(nnet)
    library(effects)
    data(iris)
    attach(iris)
    multinom.mod <- multinom(Species ~ Petal.Width, data = iris, maxit = 1000)
    effect("Petal.Width", mod = multinom.mod)

The above works, however what if the dataframe variable names have a space? (e.g. instead of `Petal.Width` it becomes `"Petal Width"`, how can I define the term in such a way `effect()` understands?





In the case where variable names contain spaces





  [1]: http://cran.r-project.org/web/packages/effects/effects.pdf