-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contrast in probabilities when using lrm #26
Comments
fun is an argument to print.contrast.rms. So do k <- contrast(...)
Frank E Harrell Jr Professor and Chairman School of Medicine Department of Biostatistics Vanderbilt University On Thu, Jun 30, 2016 at 11:48 AM, Sebastian Daza notifications@github.com
|
Thank you, I got it. But this is not what I want. I would like to contrast predicted probabilities: if a logit coefficient is negative, the contrast in predicted probabilities should be also negative, this is not what I get. So, the transformation should be applied, I guess, at the prediction procedure. Do you think that is possible? Do you have any suggestion on how to do it? Thank you again, |
You would have to program complex standard error calculations to be able to Frank E Harrell Jr Professor and Chairman School of Medicine Department of Biostatistics Vanderbilt University On Fri, Jul 1, 2016 at 8:12 AM, Sebastian Daza notifications@github.com
|
Hi Frank, I'm puzzled by why using the transformation in print.contrast.rms I copied his original question and your reply below for reference. Thanks, JoAnn Your reply: k <- contrast(...)
Original question: Apparently, I cannot use a function such as |1/(1 + exp(-x))| in the |age <- rnorm(200,40,12) Any ideas on how to get a contrast in probabilities? JoAnn Rudd Alvarez On 07/01/2016 08:53 AM, Frank Harrell wrote:
|
JoAnn, Why would a nonlinear transformation work in this way? contrast will contrast.rms handles bootstrapped estimates and it may be possible to BUT note that differences in probabilities is not a great scale anyway. Frank Frank E Harrell Jr Professor and Chairman School of Medicine Department of Biostatistics Vanderbilt University On Fri, Jul 1, 2016 at 11:39 AM, JoAnn Rudd Alvarez <
|
JoAnn Rudd Alvarez On 07/01/2016 12:52 PM, Frank Harrell wrote:
By the way, thanks for answering my questions.
|
The function is applying plogis to log odds ratios (as @harrelfe pointed out). If the difference is zero, you get a value of 0.5. The difference between predicted probabilities should be also 0. I agree about the use of odd ratios and logit coefficients. I think we shouldn't use them to communicate our results and models. Look at this. You can use the package Zelig to simulate predicted values. |
It applies plogis to the log odds RATIO which doesnt make sense.
|
Oh, ok, thanks. JoAnn Rudd Alvarez On 07/01/2016 03:16 PM, Frank Harrell wrote:
|
Apparently, I cannot use a function such as
1/(1 + exp(-x))
in the contrast command.Any ideas on how to get a contrast in probabilities?
The text was updated successfully, but these errors were encountered: