mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-11-21 19:30:22 +01:00
re-added include.stratum flag to print_pred_stratum
This commit is contained in:
parent
030f2196d7
commit
5728450087
@ -1,6 +1,6 @@
|
|||||||
Package: daDoctoR
|
Package: daDoctoR
|
||||||
Title: Functions For Health Research
|
Title: Functions For Health Research
|
||||||
Version: 0.21.12
|
Version: 0.21.13
|
||||||
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>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#' mtcars$am<-factor(mtcars$am)
|
#' mtcars$am<-factor(mtcars$am)
|
||||||
#' print_pred_stratum(meas="mpg",strat="vs",adj=c("disp","wt","am"),data=mtcars,include.stratum=TRUE)
|
#' print_pred_stratum(meas="mpg",strat="vs",adj=c("disp","wt","am"),data=mtcars,include.stratum=TRUE)
|
||||||
|
|
||||||
print_pred_stratum<-function(meas,adj,strat,data,dec=2,n.by.adj=FALSE,p.val=FALSE){
|
print_pred_stratum<-function(meas,adj,strat,data,dec=2,n.by.adj=FALSE,p.val=FALSE,include.stratum = T){
|
||||||
require(daDoctoR)
|
require(daDoctoR)
|
||||||
require(dplyr)
|
require(dplyr)
|
||||||
|
|
||||||
|
@ -11,7 +11,8 @@ print_pred_stratum(
|
|||||||
data,
|
data,
|
||||||
dec = 2,
|
dec = 2,
|
||||||
n.by.adj = FALSE,
|
n.by.adj = FALSE,
|
||||||
p.val = FALSE
|
p.val = FALSE,
|
||||||
|
include.stratum = T
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
\arguments{
|
\arguments{
|
||||||
|
Loading…
Reference in New Issue
Block a user