mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-11-24 20:51:54 +01:00
minor fix to include flags
This commit is contained in:
parent
ecc7cbd01c
commit
21391d9392
@ -1,6 +1,6 @@
|
|||||||
Package: daDoctoR
|
Package: daDoctoR
|
||||||
Title: Functions For Health Research
|
Title: Functions For Health Research
|
||||||
Version: 0.21.15
|
Version: 0.21.16
|
||||||
Year: 2021
|
Year: 2021
|
||||||
Author: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
Author: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
||||||
Maintainer: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
Maintainer: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
||||||
|
@ -30,7 +30,7 @@ print_pred_stratum<-function(meas,adj,strat,data,dec=2,n.by.adj=FALSE,p.val=FALS
|
|||||||
strt<-data[, c(strat)]
|
strt<-data[, c(strat)]
|
||||||
for (i in 1:length(levels(factor(strt)))){
|
for (i in 1:length(levels(factor(strt)))){
|
||||||
d_str<-data[data[[strat]]==levels(data[[strat]])[i], c(meas,adj)]
|
d_str<-data[data[[strat]]==levels(data[[strat]])[i], c(meas,adj)]
|
||||||
ls_str<-list(print_pred(meas = meas,adj=adj,data=d_str))
|
ls_str<-list(print_pred(meas = meas,adj=adj,data=d_str,dec=dec,n.by.adj=n.by.adj,p.val=p.val))
|
||||||
names(ls_str)<-levels(factor(strt))[i]
|
names(ls_str)<-levels(factor(strt))[i]
|
||||||
ls<-append(ls,ls_str)
|
ls<-append(ls,ls_str)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user