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

How to get the proportion in table command of R?

$
0
0

@harry wrote:

I am currently trying to solve kaggle titanic problem I want to see how Sex variable effects the survival of the passenger for this I have used the table function but I want to know proportion by which Sex affects the Survival.

table(train$Sex, train$Survived)
        
           0   1
  female  81 233
  male   468 109

Here the numbers are absolute.I want them in proportion.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles