search for: promotion_ind

Displaying 3 results from an estimated 3 matches for "promotion_ind".

2012 May 03
0
Validation of logistic models in R 2.12
...alues using the code: pred1 = predict(trainlogit1,testdata_1, type = "response") How do I proceed from here? Is there another way in which I can plot lift charts? My model output is: Call: glm(formula = Attrition_ind ~ Time.in.com + UV_LTIA_Base + as.factor(new_hire_ind) + as.factor(promotion_ind) + as.factor(Time.in.comp...5.years) + as.factor(Change.in.Job.Code) + Positioning_num + as.factor(Below.Guideline) + as.factor(Above.Guideline) + as.factor(Drop.in.Rating.in.2010) + as.factor(Increase.in.Rating.in.2010) + as.factor(job_band), family = binomial(link = "logit&qu...
2012 May 04
0
FW: Validation of logistic models in R 2.12
...alues using the code: pred1 = predict(trainlogit1,testdata_1, type = "response") How do I proceed from here? Is there another way in which I can plot lift charts? My model output is: Call: glm(formula = Attrition_ind ~ Time.in.com + UV_LTIA_Base + as.factor(new_hire_ind) + as.factor(promotion_ind) + as.factor(Time.in.comp...5.years) + as.factor(Change.in.Job.Code) + Positioning_num + as.factor(Below.Guideline) + as.factor(Above.Guideline) + as.factor(Drop.in.Rating.in.2010) + as.factor(Increase.in.Rating.in.2010) + as.factor(job_band), family = binomial(link = "logit&qu...
2012 Apr 18
1
Help with creating conditional categorical variables in R
Hi, I am stuck with creating a conditional categorical variable in R If my dataframe data_2 has 3 variables A,B,C I want to create variable D which would be something like : data_2$D <- ifelse(data_2$A < data_2$B & promotion_ind =="N",1,0), this throws up an error "In Ops.factor(data_2$A,data_2$B) : < not meaningful for factors I have tried converting the dataframe to a matrix using data.matrix(data_2, rownames.force = NA) but that did not help, Can anybody tell me how to go about doing this? Thanks...