Displaying 5 results from an estimated 5 matches for "dwaipayan".
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
2012 Jun 12
0
How to create lift chart and ROC curve in R
...wlogit3)
to predict I have a have used the code
Test_data_1011 <- read.csv(file="TEST DATA_10_11.csv", header = TRUE, sep = ",", row.names = "employee_id", stringsAsFactors = TRUE)
pred3 = predict(newlogit3,Test_data_1011 ,type = "response")
Warm regards,
Dwaipayan
American Express made the following annotations on Tue Jun 12 2012 05:44:05
******************************************************************************
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If...
2012 May 04
0
FW: Validation of logistic models in R 2.12
Could someone help me on this please?
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Dwaipayan Dasgupta
Sent: Thursday, May 03, 2012 1:43 PM
To: r-help at r-project.org
Subject: [R] Validation of logistic models in R 2.12
Hi everyone,
I am trying to validate a logistic model built in R. Not my version of R is 2.12 and I cannot install ROCR.
I have gone to a point where I have the predicted...
2012 Apr 24
1
Splitting data into test and train (80:20) kepping attributes similar
Hi,
I am trying to do some predictive modeling around attrition and want to split the dataset into test and train (80:20) and keep the ratio of attritees:non attrites same.
In my dataset the attrition indicator is coded as 0(for non-attritees) and 1 (for attritees) and I want to keep the ratio of 0's to 1 similar.
I apologize for this trivial question but this is my second week with R.
2012 May 03
0
Validation of logistic models in R 2.12
Hi everyone,
I am trying to validate a logistic model built in R. Not my version of R is 2.12 and I cannot install ROCR.
I have gone to a point where I have the predicted values 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 =