Linked Questions

0
votes
0answers
15 views

Converting continuous predictor to category e.g. Age [duplicate]

I notice that on many examples one is keen to convert Age to a categorical age range. I am wondering if that is always necessary. The famous golf play decision tree example has ranges for temperatures ...
14
votes
1answer
13k views

Logistic Regression with regression splines in R

I have been developing a logistic regression model based on retrospective data from a national trauma database of head injury in the UK. The key outcome is 30 day mortality (denoted as "Survive&...
3
votes
3answers
601 views

Understanding the shape of the distribution of a random variable

What plots can I draw to understand the shape of the distribution of a random variable? I do know that histograms can be plotted to do the above. But can a box plot and a violin plot be plotted as ...
3
votes
3answers
177 views

Handling Features with Outliers in Classification

Let's consider I have a data set of student details. Age would be a typical feature in such a data set. Just because there are typically fewer people aged above 40 in such a data set, which is ...
2
votes
1answer
74 views

Setting contrasts for 10-level categorical variable

I have survey data on income and support for environmental protection. Income is a continuous variable that I have broken up into deciles. I have a hypothesis that support for protection ('Agree') ...
1
vote
0answers
52 views

Modeling covariates in multiple regression

My aim is to find the association between intake of chocolate (continuous predictor) and blood pressure (continuous outcome) in a multiple linear regression. I have to include many covariates in order ...
1
vote
1answer
39 views

Is there a benefit to splitting the data by gender or age range when building predictive models?

Assume we had a set of data that contained thousands of samples with the following information: gender, age, height, weight, country. Now, suppose we wanted to build a model for predicting people's ...
2
votes
1answer
23 views

Variable Importance Plot & Hypothesis Testing

I am trying to predict whether client would take up a promotion or not using the random forest model. From the variable importance plot output, it is shown that the number of days pass the day of ...
0
votes
1answer
27 views

Logistic regression using a predictor that's part of the outcome

Say I have 2 continuous variables measuring the same thing (e.g., at-home blood pressure monitor and in-office blood pressure cuff with in-office measurements being the gold standard). At a cut-off of ...
1
vote
2answers
26 views

xgboost with Skewed data [closed]

I am attempting to run xgboost on response data ( Whether a product is sold or not).However, I have a feature 'number of employees' which is highly skewed. I'm thinking of convert this continuous ...
0
votes
0answers
25 views

Creating groups on age column for Random Forest Algorithm?

I have a data set with a column 'age' and below unique values : ...