Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Should we perform facorization on binary/catagorical variables while doing regression?

$
0
0

@satyadeep9123 wrote:

Hi,

It might be a generic question. I am trying to perform Logistic regression on a specific data set in R. I have a binary column. Should I factorize it (i.e. as.factor(column_X)) before constructing the model? or Should I leave it as it is.

The reason why I am opting for the second option is because by any means R will perform one hot encoding internally and convert the binary column into numeric again.

Thanks,
Satyadeep

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles