2018-10-05 10:22:02 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
2021-06-11 13:43:56 +02:00
|
|
|
% Please edit documentation in R/strobe_diff_bygroup.R
|
2018-10-05 14:28:27 +02:00
|
|
|
\name{strobe_diff_bygroup}
|
|
|
|
\alias{strobe_diff_bygroup}
|
2021-06-11 12:07:55 +02:00
|
|
|
\title{REWRITE UNDERWAY - replaced by 'print_diff_bygroup'}
|
2018-10-05 10:22:02 +02:00
|
|
|
\usage{
|
2018-10-05 14:28:27 +02:00
|
|
|
strobe_diff_bygroup(meas, var, group, adj, data, dec = 2)
|
2018-10-05 10:22:02 +02:00
|
|
|
}
|
|
|
|
\arguments{
|
2021-03-29 08:58:26 +02:00
|
|
|
\item{meas}{outcome measure variable name in data-data.frame as a string. Can be numeric or factor. Result is calculated accordingly.}
|
2018-10-05 10:22:02 +02:00
|
|
|
|
2018-10-10 12:00:41 +02:00
|
|
|
\item{var}{binary exposure variable to compare against (active vs placebo). As string.}
|
2018-10-05 10:22:02 +02:00
|
|
|
|
2021-03-29 08:58:26 +02:00
|
|
|
\item{group}{binary group to compare, as string.}
|
2019-11-12 14:12:27 +01:00
|
|
|
|
2018-10-05 10:22:02 +02:00
|
|
|
\item{adj}{variables to adjust for, as string.}
|
|
|
|
|
2021-03-29 08:58:26 +02:00
|
|
|
\item{data}{dataframe to subset from.}
|
2018-10-05 10:22:02 +02:00
|
|
|
|
2019-02-03 12:14:29 +01:00
|
|
|
\item{dec}{decimals for results, standard is set to 2. Mean and sd is dec-1. pval has 3 decimals.}
|
2018-10-05 10:22:02 +02:00
|
|
|
}
|
|
|
|
\description{
|
2021-03-30 13:31:17 +02:00
|
|
|
Print regression results according to STROBE
|
|
|
|
}
|
|
|
|
\details{
|
2021-03-29 08:58:26 +02:00
|
|
|
Printable table of two dimensional regression analysis of group vs variable for outcome measure. By group. Includes p-value
|
|
|
|
Group and variable has to be dichotomous factor.
|
|
|
|
}
|
|
|
|
\examples{
|
|
|
|
data('mtcars')
|
|
|
|
mtcars$vs<-factor(mtcars$vs)
|
|
|
|
mtcars$am<-factor(mtcars$am)
|
|
|
|
strobe_diff_bygroup(meas="mpg",var="vs",group = "am",adj=c("disp","wt"),data=mtcars)
|
2018-10-05 10:22:02 +02:00
|
|
|
}
|
2018-10-10 11:52:02 +02:00
|
|
|
\keyword{strobe}
|