From ba38fa052d6dcef7a50576dd264df2b7ab5dcf19 Mon Sep 17 00:00:00 2001 From: agdamsbo Date: Fri, 5 Oct 2018 14:28:27 +0200 Subject: [PATCH] updates --- NAMESPACE | 3 +- man/strobe_diff_bygroup.Rd | 28 +++++++++++++++++++ man/{strobe_diff1.Rd => strobe_diff_byvar.Rd} | 12 ++++---- 3 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 man/strobe_diff_bygroup.Rd rename man/{strobe_diff1.Rd => strobe_diff_byvar.Rd} (76%) diff --git a/NAMESPACE b/NAMESPACE index e4fc9c1..90fefed 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -15,4 +15,5 @@ export(rep_epi_tests) export(rep_glm) export(rep_lm) export(rep_reg_cie) -export(strobe_diff1) +export(strobe_diff_bygroup) +export(strobe_diff_byvar) diff --git a/man/strobe_diff_bygroup.Rd b/man/strobe_diff_bygroup.Rd new file mode 100644 index 0000000..fbf87a5 --- /dev/null +++ b/man/strobe_diff_bygroup.Rd @@ -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} diff --git a/man/strobe_diff1.Rd b/man/strobe_diff_byvar.Rd similarity index 76% rename from man/strobe_diff1.Rd rename to man/strobe_diff_byvar.Rd index 2ac8961..2f0a6fd 100644 --- a/man/strobe_diff1.Rd +++ b/man/strobe_diff_byvar.Rd @@ -1,10 +1,10 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/strobe_diff1.R -\name{strobe_diff1} -\alias{strobe_diff1} +% Please edit documentation in R/strobe_diff_byvar.R +\name{strobe_diff_byvar} +\alias{strobe_diff_byvar} \title{Print regression results according to STROBE} \usage{ -strobe_diff1(meas, var, group, adj, data, dec = 2) +strobe_diff_byvar(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.} @@ -20,9 +20,9 @@ strobe_diff1(meas, var, group, adj, data, dec = 2) \item{groups}{groups to compare, as string.} } \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{ -strobe_diff1() +strobe_diff_byvar() } \keyword{cpr}