search for: deal_category2

Displaying 1 result from an estimated 1 matches for "deal_category2".

2012 Oct 09
1
How to create a column in dependence of another column
...< 200 USDm "medium", if value x in "trans_value" is: 200 USDm =< x < 500 USDm "high", if value in "trans_value" is: >= 500 USDm Having defined these deals with low, medium, high I want to run a lm() with these categories as independent variable. deal_category2 <- factor(deal_category) levels(deal_category2) <- c("low", "medium", "high") reg_1 <- lm(dep_var1 ~ indep_1 + indep_2 + deal_category2) summary(reg_1) Is this correct? Does R recognize my categories as variables? Thanks for all your support! Felix -- Vi...