re-added include.stratum flag to print_pred_stratum

This commit is contained in:
AG Damsbo 2021-10-06 11:14:43 +02:00
parent 030f2196d7
commit 5728450087
4 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -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)

View File

@ -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{

View File

@ -1,5 +1,6 @@
library(roxygen2, devtools) library(roxygen2, devtools)
setwd("/Users/au301842/daDoctoR")
source("updatePackageVersion.R") source("updatePackageVersion.R")
updatePackageVersion() updatePackageVersion()