Displaying 3 results from an estimated 3 matches for "lreg".
Did you mean:
greg
2010 Sep 24
3
Odds ratio from Logistic model in R
...onfidence
intervall, from
>a logistic model (glm(.......,family=binomial....). I've written my
own, but
>certainly someone did a better job.
I show a simple function to do this in my introductory notes available
from:
http://www.myatt.demon.co.uk
basically it is:
lreg.or <- function(model)
{
lreg.coeffs <- coef(summary(salex.lreg))
lci <- exp(lreg.coeffs[ ,1] - 1.96 * lreg.coeffs[ ,2])
or <- exp(lreg.coeffs[ ,1])
uci <- exp(lreg.coeffs[ ,1] + 1.96 * lreg.coeffs[ ,2])
lreg.or <- cbind(l...
2001 Mar 05
1
Odds Ratio from Logistic Model
Hi all.
A simple question.
Is there a function to compute the Odds Ratio and its confidence intervall, from a logistic model (glm(.......,family=binomial....). I've written my own, but certainly someone did a better job.
Thank you in advance,
Stefano
***********************************************
Stefano Calza
Istituto di Statistica Medica e Biometria
Universit? degli Studi di Milano
Via
2004 Jun 27
2
subset drop unused levels
hi there
tried to use subset with drop=TRUE, but all the 'old' levels are preserved,
i.e. when calling e.g. ftable a lot of zeros are displayed
>x<-subset(LREG, (kir=='AA' | kir=='BB') & (type=='t1' | otype=='t2'),
drop=TRUE, select=c(event, kir, type))
> ftable(x)
i explicit have to call factor like
>ftable(event~factor(kir)+factor(type))
any hints?
regards soren