Alternative to logistic regression
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
With this synthetic data set (the relationship between survival/death and the factor x) (plotted in the below figure as blue points), I would like to know how the survival probability depends on the factor x. I don't think logistic regression is the right tool for this data set because I think it can only give a monotonic function as its estimation while for this synthetic data set, I expect a different relationship (the red line in the below figure is my expectation). I wonder what is the best statistical tool here? generalized additive model?
regression logistic
New contributor
add a comment |Â
up vote
1
down vote
favorite
With this synthetic data set (the relationship between survival/death and the factor x) (plotted in the below figure as blue points), I would like to know how the survival probability depends on the factor x. I don't think logistic regression is the right tool for this data set because I think it can only give a monotonic function as its estimation while for this synthetic data set, I expect a different relationship (the red line in the below figure is my expectation). I wonder what is the best statistical tool here? generalized additive model?
regression logistic
New contributor
1
If you have information about time to death and not just the binary dead/alive classification, consider using survival analysis instead. Like a logistic regression, a Cox proportional hazards regression can also incorporate splines of continuous predictor variables as noted in the answer by @gung, for example via therms
package in R.
â EdM
3 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
With this synthetic data set (the relationship between survival/death and the factor x) (plotted in the below figure as blue points), I would like to know how the survival probability depends on the factor x. I don't think logistic regression is the right tool for this data set because I think it can only give a monotonic function as its estimation while for this synthetic data set, I expect a different relationship (the red line in the below figure is my expectation). I wonder what is the best statistical tool here? generalized additive model?
regression logistic
New contributor
With this synthetic data set (the relationship between survival/death and the factor x) (plotted in the below figure as blue points), I would like to know how the survival probability depends on the factor x. I don't think logistic regression is the right tool for this data set because I think it can only give a monotonic function as its estimation while for this synthetic data set, I expect a different relationship (the red line in the below figure is my expectation). I wonder what is the best statistical tool here? generalized additive model?
regression logistic
regression logistic
New contributor
New contributor
New contributor
asked 4 hours ago
Tanis
61
61
New contributor
New contributor
1
If you have information about time to death and not just the binary dead/alive classification, consider using survival analysis instead. Like a logistic regression, a Cox proportional hazards regression can also incorporate splines of continuous predictor variables as noted in the answer by @gung, for example via therms
package in R.
â EdM
3 hours ago
add a comment |Â
1
If you have information about time to death and not just the binary dead/alive classification, consider using survival analysis instead. Like a logistic regression, a Cox proportional hazards regression can also incorporate splines of continuous predictor variables as noted in the answer by @gung, for example via therms
package in R.
â EdM
3 hours ago
1
1
If you have information about time to death and not just the binary dead/alive classification, consider using survival analysis instead. Like a logistic regression, a Cox proportional hazards regression can also incorporate splines of continuous predictor variables as noted in the answer by @gung, for example via the
rms
package in R.â EdM
3 hours ago
If you have information about time to death and not just the binary dead/alive classification, consider using survival analysis instead. Like a logistic regression, a Cox proportional hazards regression can also incorporate splines of continuous predictor variables as noted in the answer by @gung, for example via the
rms
package in R.â EdM
3 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
Logistic regression can very well model 'curvilinear' relationships, just as linear regression can. You need to add extra terms, functions of x
to allow the model to account for that. The most common way is to add a sequence of polynomial terms (i.e., $x^2$, $x^3$, $x^4$, etc.). You can also use other nonlinear transformations of $x$ (e.g., $log(x)$). A more sophisticated approach is to use spline functions.
There is an example of using logistic regression this way in my answer here: How to use boxplots to find the point where values are more likely to come from different conditions?
Thanks for your reply. In this sense, is additive model a more convenient tool? I'm not familiar with it but I guess additive model can provide a more convenient way to add nonlinearity to the model?
â Tanis
4 hours ago
@Tanis, what do you mean by "additive model" here? A simple model w/ x, x2, & x3, could well be called an additive model.
â gungâ¦
4 hours ago
1
I have this link to its wikipedia page. en.wikipedia.org/wiki/Generalized_additive_model
â Tanis
4 hours ago
@Tanis, OK, a GAM isn't quite the same as the generic use of "additive model". At any rate, you can think of a logistic regression with polynomial terms as a simple case of a GAM. Whether it's "more convenient" would only be a function of your relative comfort w/ the code.
â gungâ¦
4 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Logistic regression can very well model 'curvilinear' relationships, just as linear regression can. You need to add extra terms, functions of x
to allow the model to account for that. The most common way is to add a sequence of polynomial terms (i.e., $x^2$, $x^3$, $x^4$, etc.). You can also use other nonlinear transformations of $x$ (e.g., $log(x)$). A more sophisticated approach is to use spline functions.
There is an example of using logistic regression this way in my answer here: How to use boxplots to find the point where values are more likely to come from different conditions?
Thanks for your reply. In this sense, is additive model a more convenient tool? I'm not familiar with it but I guess additive model can provide a more convenient way to add nonlinearity to the model?
â Tanis
4 hours ago
@Tanis, what do you mean by "additive model" here? A simple model w/ x, x2, & x3, could well be called an additive model.
â gungâ¦
4 hours ago
1
I have this link to its wikipedia page. en.wikipedia.org/wiki/Generalized_additive_model
â Tanis
4 hours ago
@Tanis, OK, a GAM isn't quite the same as the generic use of "additive model". At any rate, you can think of a logistic regression with polynomial terms as a simple case of a GAM. Whether it's "more convenient" would only be a function of your relative comfort w/ the code.
â gungâ¦
4 hours ago
add a comment |Â
up vote
3
down vote
Logistic regression can very well model 'curvilinear' relationships, just as linear regression can. You need to add extra terms, functions of x
to allow the model to account for that. The most common way is to add a sequence of polynomial terms (i.e., $x^2$, $x^3$, $x^4$, etc.). You can also use other nonlinear transformations of $x$ (e.g., $log(x)$). A more sophisticated approach is to use spline functions.
There is an example of using logistic regression this way in my answer here: How to use boxplots to find the point where values are more likely to come from different conditions?
Thanks for your reply. In this sense, is additive model a more convenient tool? I'm not familiar with it but I guess additive model can provide a more convenient way to add nonlinearity to the model?
â Tanis
4 hours ago
@Tanis, what do you mean by "additive model" here? A simple model w/ x, x2, & x3, could well be called an additive model.
â gungâ¦
4 hours ago
1
I have this link to its wikipedia page. en.wikipedia.org/wiki/Generalized_additive_model
â Tanis
4 hours ago
@Tanis, OK, a GAM isn't quite the same as the generic use of "additive model". At any rate, you can think of a logistic regression with polynomial terms as a simple case of a GAM. Whether it's "more convenient" would only be a function of your relative comfort w/ the code.
â gungâ¦
4 hours ago
add a comment |Â
up vote
3
down vote
up vote
3
down vote
Logistic regression can very well model 'curvilinear' relationships, just as linear regression can. You need to add extra terms, functions of x
to allow the model to account for that. The most common way is to add a sequence of polynomial terms (i.e., $x^2$, $x^3$, $x^4$, etc.). You can also use other nonlinear transformations of $x$ (e.g., $log(x)$). A more sophisticated approach is to use spline functions.
There is an example of using logistic regression this way in my answer here: How to use boxplots to find the point where values are more likely to come from different conditions?
Logistic regression can very well model 'curvilinear' relationships, just as linear regression can. You need to add extra terms, functions of x
to allow the model to account for that. The most common way is to add a sequence of polynomial terms (i.e., $x^2$, $x^3$, $x^4$, etc.). You can also use other nonlinear transformations of $x$ (e.g., $log(x)$). A more sophisticated approach is to use spline functions.
There is an example of using logistic regression this way in my answer here: How to use boxplots to find the point where values are more likely to come from different conditions?
answered 4 hours ago
gungâ¦
103k34246510
103k34246510
Thanks for your reply. In this sense, is additive model a more convenient tool? I'm not familiar with it but I guess additive model can provide a more convenient way to add nonlinearity to the model?
â Tanis
4 hours ago
@Tanis, what do you mean by "additive model" here? A simple model w/ x, x2, & x3, could well be called an additive model.
â gungâ¦
4 hours ago
1
I have this link to its wikipedia page. en.wikipedia.org/wiki/Generalized_additive_model
â Tanis
4 hours ago
@Tanis, OK, a GAM isn't quite the same as the generic use of "additive model". At any rate, you can think of a logistic regression with polynomial terms as a simple case of a GAM. Whether it's "more convenient" would only be a function of your relative comfort w/ the code.
â gungâ¦
4 hours ago
add a comment |Â
Thanks for your reply. In this sense, is additive model a more convenient tool? I'm not familiar with it but I guess additive model can provide a more convenient way to add nonlinearity to the model?
â Tanis
4 hours ago
@Tanis, what do you mean by "additive model" here? A simple model w/ x, x2, & x3, could well be called an additive model.
â gungâ¦
4 hours ago
1
I have this link to its wikipedia page. en.wikipedia.org/wiki/Generalized_additive_model
â Tanis
4 hours ago
@Tanis, OK, a GAM isn't quite the same as the generic use of "additive model". At any rate, you can think of a logistic regression with polynomial terms as a simple case of a GAM. Whether it's "more convenient" would only be a function of your relative comfort w/ the code.
â gungâ¦
4 hours ago
Thanks for your reply. In this sense, is additive model a more convenient tool? I'm not familiar with it but I guess additive model can provide a more convenient way to add nonlinearity to the model?
â Tanis
4 hours ago
Thanks for your reply. In this sense, is additive model a more convenient tool? I'm not familiar with it but I guess additive model can provide a more convenient way to add nonlinearity to the model?
â Tanis
4 hours ago
@Tanis, what do you mean by "additive model" here? A simple model w/ x, x2, & x3, could well be called an additive model.
â gungâ¦
4 hours ago
@Tanis, what do you mean by "additive model" here? A simple model w/ x, x2, & x3, could well be called an additive model.
â gungâ¦
4 hours ago
1
1
I have this link to its wikipedia page. en.wikipedia.org/wiki/Generalized_additive_model
â Tanis
4 hours ago
I have this link to its wikipedia page. en.wikipedia.org/wiki/Generalized_additive_model
â Tanis
4 hours ago
@Tanis, OK, a GAM isn't quite the same as the generic use of "additive model". At any rate, you can think of a logistic regression with polynomial terms as a simple case of a GAM. Whether it's "more convenient" would only be a function of your relative comfort w/ the code.
â gungâ¦
4 hours ago
@Tanis, OK, a GAM isn't quite the same as the generic use of "additive model". At any rate, you can think of a logistic regression with polynomial terms as a simple case of a GAM. Whether it's "more convenient" would only be a function of your relative comfort w/ the code.
â gungâ¦
4 hours ago
add a comment |Â
Tanis is a new contributor. Be nice, and check out our Code of Conduct.
Tanis is a new contributor. Be nice, and check out our Code of Conduct.
Tanis is a new contributor. Be nice, and check out our Code of Conduct.
Tanis is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f369026%2falternative-to-logistic-regression%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
If you have information about time to death and not just the binary dead/alive classification, consider using survival analysis instead. Like a logistic regression, a Cox proportional hazards regression can also incorporate splines of continuous predictor variables as noted in the answer by @gung, for example via the
rms
package in R.â EdM
3 hours ago