Displaying 1 result from an estimated 1 matches for "log_cond".
2012 Aug 20
2
Unable to reference variable created in dataframe
...CONDITION" is my dependent variable, and "TRAFFIC" and
"WEATHER" are the independent variables I am considering. In order to
capture a possible exponential relationship between "CONDITION", "TRAFFIC",
and "WEATHER", I created the variable "LOG_COND":
Bridges$LOG_COND = log(Bridges$CONDITION, base = exp(1))
I then used the "str" command to verify that the variable shows up
correctly, and is of the correct form (numeric) in the dataframe.
However, when I then attempt to use my new variable, say, for example:
lm.bridges = lm(L...