mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-11-23 20:30:21 +01:00
update
This commit is contained in:
parent
1f5bad426c
commit
6bd9e0508b
@ -1,6 +1,6 @@
|
||||
Package: daDoctoR
|
||||
Title: Functions For Health Research
|
||||
Version: 0.19.10
|
||||
Version: 0.19.11
|
||||
Year: 2019
|
||||
Author: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
||||
Maintainer: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
||||
|
@ -21,10 +21,9 @@ plot_biv_olr<-function(meas,vars,data, title = NULL,dec=3,lbls=NULL,hori="OR (95
|
||||
d <- data
|
||||
x <- data.frame(d[, c(ad)])
|
||||
y <- d[, c(meas)]
|
||||
dt <- cbind(y, x)
|
||||
|
||||
if (analysis=="biv"){
|
||||
|
||||
dt <- cbind(y, x)
|
||||
odds<-c(matrix(ncol = 3))
|
||||
nms<-c("or","lo","hi")
|
||||
for (i in 1:ncol(x)) {
|
||||
@ -41,8 +40,7 @@ odds<-odds[-1,]
|
||||
}
|
||||
|
||||
if (analysis=="multi"){
|
||||
|
||||
m<-polr(y~.,data = dta2,Hess = TRUE)
|
||||
m<-polr(y~.,data = dt,Hess = TRUE)
|
||||
odds<-data.frame(cbind(exp(coef(m)), exp(confint(m))))
|
||||
}
|
||||
names(odds)<-c("or", "lo", "up")
|
||||
|
Loading…
Reference in New Issue
Block a user