Displaying 20 results from an estimated 10000 matches similar to: "Ordinal logistic regression (lrm)- checking model assumptions"
2008 Apr 15
1
Predicting ordinal outcomes using lrm{Design}
Dear List,
I have two questions about how to do predictions using lrm, specifically
how to predict the ordinal response for each observation *individually*.
I'm very new to cumulative odds models, so my apologies if my questions are
too basic.
I have a dataset with 4000 observations. Each observation consists of
an ordinal outcome y (i.e., rating of a stimulus with four possible
2004 Mar 24
0
Adapting thresholds for predictions of ordinal logistic regression
I'm dealing with a classification problem using ordinal logistic
regression. In the case of binary logistic regression with unequal
proportions of 0's and 1's, a threshold in the interval [0,1] has to be
adapted to transform back the predicted probabilities into 0 and 1.
This can be done quite straightforward using e.g. the Kappa statistics
as accuracy criterion.
With
2004 Mar 04
1
Ordinal logistic regression using spatial data
I have a spatial data set with ordinal response variable containing
four levels. I would like to know if and how spatial autocorrelation
can be taken into account when ordinal logistic regression is used
(e.g. the function lrm from the Design package).
Thanks for your help!
Christof
2007 May 10
1
Follow-up about ordinal logit with mixtures: how about 'continuation ratio' strategy?
This is a follow up to the message I posted 3 days ago about how to
estimate mixed ordinal logit models. I hope you don't mind that I am
just pasting in the code and comments from an R file for your
feedback. Actual estimates are at the end of the post.
### Subject: mixed ordinal logit via "augmented" data setup.
### I've been interested in estimating an ordinal logit model
2009 Sep 04
1
Multinomial and Ordinal Logistic Regression - Probability calculation
Dear all,
I am new to R and would like to run a multinomial logistic regression on my dataset (3 predictors for 1 dependent variables)
I have used the vglm function from the VGAM package and got some results. Using the predict() function, I obtained the probability table I was looking for. However, I would like to fully understand how the predict() function generates the probabilities or in
2013 Jan 24
4
Difference between R and SAS in Corcordance index in ordinal logistic regression
lrm does some binning to make the calculations faster. The exact calculation
is obtained by running
f <- lrm(...)
rcorr.cens(predict(f), DA), which results in:
C Index Dxy S.D. n missing
0.96814404 0.93628809 0.03808336 32.00000000 0.00000000
uncensored Relevant Pairs Concordant Uncertain
32.00000000
2008 Jan 05
1
AUC values from LRM and ROCR
Dear List,
I am trying to assess the prediction accuracy of an ordinal model fit with
LRM in the Design package. I used predict.lrm to predict on an independent
dataset and am now attempting to assess the accuracy of these predictions.
>From what I have read, the AUC is good for this because it is threshold
independent. I obtained the AUC for the fit model output from the c score (c
=
2004 Mar 22
2
Handling of NAs in functions lrm and robcov
Hi R-helpers
I have a dataframe DF (lets say with the variables, y, x1, x2, x3, ...,
clust) containing relatively many NAs.
When I fit an ordinal regression model with the function lrm from the
Design library:
model.lrm <- lrm(y ~ x1 + x2, data=DF, x=TRUE, y=TRUE)
it will by default delete missing values in the variables y, x1, x2.
Based on model.lrm, I want to apply the robust covariance
2009 Nov 14
1
setting contrasts for a logistic regression
Hi everyone,
I'm doing a logistic regression with an ordinal variable. I'd like to set
the contrasts on the ordinal variable. However, when I set the contrasts,
they work for ordinary linear regression (lm), but not logistic regression
(lrm):
ddist = datadist(bin.time, exp.loc)
options(datadist='ddist')
contrasts(exp.loc) = contr.treatment(3, base = 3, contrasts = TRUE)
lrm.loc =
2011 Aug 29
1
Ordinal logistic regression p-values
Hi,
?? Are there any packages which prints out p-values for OLR's (like `ologit' from Stata)? I want to run a bunch of OLRs and print the p-value for the first coefficient from each of them.
? I checked polr() under MASS and it doesn't.
?There's a lrm() function under Design which does print out p-values but I couldn't extract p-values from the output.
? Thanks,
? Debs
2016 Apr 26
0
Predicting probabilities in ordinal probit analysis in R
Dear all,
I have two questions that are almost completely related to how to do things in R.
I am running an ordinal probit regression analysis in R. The dependent variable has three levels (0=no action; 1=warning; 2=sanction).
I use the lrm command in the rms package:
print( res1<- lrm(Y ~ x1+x2+x3+x4+x5+x6, y=TRUE, x=TRUE, data=mydata))
I simply couldn't make any sense of the
2009 Sep 04
2
lrm in Design package--missing value where TRUE/FALSE needed
Hi,
A error message arose while I was trying to fit a ordinal model with lrm() I am using R 2.8 with Design package.
Here is a small set of mydata:
RC RS Sex CovA CovB CovC CovD CovE
2 1 0 1 1 0 -0.005575280 2
2 1 0 1 0 1 -0.001959580 2
3 0 0 0 1 0 -0.004725880 2
0 0 0 1 0 0 -0.005504850 2
2 1 1 0 0 0 -0.003880170 1
2 1 0 0 1 0 -0.006074230 2
2 1 0 0 1 1 -0.003963920 2
2 1 0 0 1 0
2009 Sep 26
1
Summary/Bootstrap for Design library's lrm function
Can anyone tell me what I might be doing incorrectly for an ordinal
logistic regression for lrm?
I cannot get R(2.9.1)to run either summary nor will it let me bootstrp to
validate.
### Y is a 5 value measure with a range from 1-5, the independent
variables are the same. N=75 but when we knock out the NAs it comes down
to 51####
> lrm(formula = Y ~ permemp + rev + gconec + scorpstat, data =
2012 Sep 06
0
Logit regression, I observed different results for glm or lrm (Design) for ordered factor variables
Dear useR's,
I was comparing results for a logistic regression model between different
library's.
themodel formula is arranged as follows:
response ~ (intercept) + value + group
OR:
glm( response ~ (intercept) + value + group ,
family=binomial(link='logit'))
lrm( response ~ (intercept) + value + group )
ROC( from = response ~ (intercept) + value + group ,
2006 May 22
1
Ordinal Independent Variables
When I run "lrm" from the Design package, I get a warning about
contrasts when I include an ordinal variable:
Warning message:
Variable ordfac is an ordered factor.
You should set
options(contrasts=c("contr.treatment","contr.treatment"))
or Design will not work properly. in: Design(eval(m, sys.parent()))
I don't get this message if I use glm with
2008 Mar 03
1
using 'lrm' for logistic regression
Hi R,
I am getting this error while trying to use 'lrm' function with nine
independent variables:
> res =
lrm(y1994~WC08301+WC08376+WC08316+WC08311+WC01001+WC08221+WC08106+WC0810
1+WC08231,data=y)
singular information matrix in lrm.fit (rank= 8 ). Offending
variable(s):
WC08101 WC08221
Error in j:(j + params[i] - 1) : NA/NaN argument
Now, if I take choose only four
2012 May 01
1
testing parallel slopes assumption for Ordinal Logistic Regression
Hi everyone, I'm a bit new here (and new to R), and I was trying to do an
OLR, and testing the parallel slope assumption seems be very important. I
browsed through past postings, and didn't find much to help me in this area.
I was wondering if anyone knew how I could go about doing this. Thank you.
--
View this message in context:
2009 Jul 10
1
prevalence in logistic regression lrm()
Hi, I am wondering if there is a way to specify the prevalence of events in logistic regression using lrm() from Design package? Linear Discriminant Analysis using lda() from MASS library has an argument "prior=" that we can use to specify the prevalent of events when the actual dataset being analyzed does not have a representative prevalence. How can we incorporate this information in
2011 May 18
1
logistic regression lrm() output
Hi, I am trying to run a simple logistic regression using lrm() to calculate a
odds ratio. I found a confusing output when I use summary() on the fit object
which gave some OR that is totally different from simply taking
exp(coefficient), see below:
> dat<-read.table("dat.txt",sep='\t',header=T,row.names=NULL)
> d<-datadist(dat)
> options(datadist='d')
2004 Feb 16
1
Binary logistic model using lrm function
Hello all,
Could someone tell me what I am doing wrong here?
I am trying to fit a binary logistic model using the lrm function in Design.
The dataset I am using has a dichotomous response variable, 'covered'
(1-yes, 0-no) with explanatory variables, 'nepall', 'title', 'abstract',
'series', and 'author1.'
I am running the following script and