This commit is contained in:
agdamsbo 2018-10-05 14:28:27 +02:00
parent 16bf5b130f
commit ba38fa052d
3 changed files with 36 additions and 7 deletions

View File

@ -15,4 +15,5 @@ export(rep_epi_tests)
export(rep_glm) export(rep_glm)
export(rep_lm) export(rep_lm)
export(rep_reg_cie) export(rep_reg_cie)
export(strobe_diff1) export(strobe_diff_bygroup)
export(strobe_diff_byvar)

View File

@ -0,0 +1,28 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/strobe_diff_bygroup.R
\name{strobe_diff_bygroup}
\alias{strobe_diff_bygroup}
\title{Print regression results according to STROBE}
\usage{
strobe_diff_bygroup(meas, var, group, adj, data, dec = 2)
}
\arguments{
\item{meas}{outcome meassure variable name in data-data.frame as a string. Can be numeric or factor. Result is calculated accordingly.}
\item{var}{exposure variable to compare against (active vs placebo). As string.}
\item{adj}{variables to adjust for, as string.}
\item{data}{dataframe of data.}
\item{dec}{decimals for results, standard is set to 2. Mean and sd is dec-1.}
\item{groups}{groups to compare, as string.}
}
\description{
Printable table of linear regression analysis of group vs var for meas. By group.
}
\examples{
strobe_diff_bygroup()
}
\keyword{cpr}

View File

@ -1,10 +1,10 @@
% Generated by roxygen2: do not edit by hand % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/strobe_diff1.R % Please edit documentation in R/strobe_diff_byvar.R
\name{strobe_diff1} \name{strobe_diff_byvar}
\alias{strobe_diff1} \alias{strobe_diff_byvar}
\title{Print regression results according to STROBE} \title{Print regression results according to STROBE}
\usage{ \usage{
strobe_diff1(meas, var, group, adj, data, dec = 2) strobe_diff_byvar(meas, var, group, adj, data, dec = 2)
} }
\arguments{ \arguments{
\item{meas}{outcome meassure variable name in data-data.frame as a string. Can be numeric or factor. Result is calculated accordingly.} \item{meas}{outcome meassure variable name in data-data.frame as a string. Can be numeric or factor. Result is calculated accordingly.}
@ -20,9 +20,9 @@ strobe_diff1(meas, var, group, adj, data, dec = 2)
\item{groups}{groups to compare, as string.} \item{groups}{groups to compare, as string.}
} }
\description{ \description{
Printable table of linear regression analysis of group vs var for meas. Printable table of linear regression analysis of group vs var for meas. By var.
} }
\examples{ \examples{
strobe_diff1() strobe_diff_byvar()
} }
\keyword{cpr} \keyword{cpr}