From 69f98dd01fc482d1e8530671d4bbf942783c041c Mon Sep 17 00:00:00 2001 From: Federico Baratin Date: Fri, 17 Jan 2025 16:20:03 +0100 Subject: [PATCH] run roxygen. --- man/derive_var_aval_adis.Rd | 1 + man/derive_vars_crit.Rd | 57 +++++++++++++++++++++++++++++-- man/derive_vars_event_flag.Rd | 1 + man/derive_vars_max_flag.Rd | 1 + man/derive_vars_merged_vaccine.Rd | 1 + man/derive_vars_params.Rd | 1 + man/derive_vars_vaxdt.Rd | 1 + 7 files changed, 61 insertions(+), 2 deletions(-) diff --git a/man/derive_var_aval_adis.Rd b/man/derive_var_aval_adis.Rd index 5ce809e6..ac4570b4 100644 --- a/man/derive_var_aval_adis.Rd +++ b/man/derive_var_aval_adis.Rd @@ -88,6 +88,7 @@ derive_var_aval_adis( } \seealso{ Other der_var: +\code{\link{derive_vars_crit}()}, \code{\link{derive_vars_event_flag}()}, \code{\link{derive_vars_max_flag}()}, \code{\link{derive_vars_merged_vaccine}()}, diff --git a/man/derive_vars_crit.Rd b/man/derive_vars_crit.Rd index db6325ed..0c853270 100644 --- a/man/derive_vars_crit.Rd +++ b/man/derive_vars_crit.Rd @@ -43,8 +43,61 @@ Dataset with criterion variables This function is \emph{deprecated}, please use \code{admiral::derive_vars_crit_flag()} instead. } +\examples{ +library(tibble) +library(admiral) +library(admiraldev) +library(dplyr) + +input <- tribble( + ~USUBJID, ~AVISITN, ~ISCAT, ~PARAMCD, ~AVAL, ~ISLLOQ, + "999999-000001", 10, "IMMUNOLOGY", "J0033VN", 2, 4, + "999999-000001", 10, "IMMUNOLOGY", "I0019NT", 3, 6, + "999999-000001", 10, "IMMUNOLOGY", "M0019LN", 4, 4, + "999999-000001", 10, "IMMUNOLOGY", "R0003MA", 3, 6, + "999999-000001", 30, "IMMUNOLOGY", "J0033VN", 60, 4, + "999999-000001", 30, "IMMUNOLOGY", "I0019NT", 567, 6, + "999999-000001", 30, "IMMUNOLOGY", "M0019LN", 659, 4, + "999999-000001", 30, "IMMUNOLOGY", "R0003MA", 250, 6, + "999999-000002", 10, "IMMUNOLOGY", "J0033VN", 2, 4, + "999999-000002", 10, "IMMUNOLOGY", "I0019NT", 7, 6, + "999999-000002", 10, "IMMUNOLOGY", "M0019LN", 5, 4, + "999999-000002", 10, "IMMUNOLOGY", "R0003MA", 3, 6, + "999999-000002", 30, "IMMUNOLOGY", "J0033VN", 55, 4, + "999999-000002", 30, "IMMUNOLOGY", "I0019NT", 89, 6, + "999999-000002", 30, "IMMUNOLOGY", "M0019LN", 990, 4, + "999999-000002", 30, "IMMUNOLOGY", "R0003MA", 340, 6, + "999999-000003", 10, "IMMUNOLOGY", "J0033VN", 3, 4, + "999999-000003", 10, "IMMUNOLOGY", "I0019NT", 6, 6, + "999999-000003", 10, "IMMUNOLOGY", "M0019LN", 2, 4, + "999999-000003", 10, "IMMUNOLOGY", "R0003MA", 2, 6, + "999999-000003", 30, "IMMUNOLOGY", "J0033VN", 45, 4, + "999999-000003", 30, "IMMUNOLOGY", "I0019NT", 381, 6, + "999999-000003", 30, "IMMUNOLOGY", "M0019LN", 542, 4, + "999999-000003", 30, "IMMUNOLOGY", "R0003MA", NA, 6 +) + + +derive_vars_crit( + dataset = input, + prefix = "CRIT1", + crit_label = "Titer >= ISLLOQ", + condition = !is.na(AVAL) & !is.na(ISLLOQ), + criterion = AVAL >= ISLLOQ +) + +} +\seealso{ +Other der_var: +\code{\link{derive_var_aval_adis}()}, +\code{\link{derive_vars_event_flag}()}, +\code{\link{derive_vars_max_flag}()}, +\code{\link{derive_vars_merged_vaccine}()}, +\code{\link{derive_vars_params}()}, +\code{\link{derive_vars_vaxdt}()} +} \author{ Federico Baratin } -\concept{deprecated} -\keyword{deprecated} +\concept{der_var} +\keyword{der_var} diff --git a/man/derive_vars_event_flag.Rd b/man/derive_vars_event_flag.Rd index 5852df4d..70b31f88 100644 --- a/man/derive_vars_event_flag.Rd +++ b/man/derive_vars_event_flag.Rd @@ -107,6 +107,7 @@ derive_vars_event_flag( \seealso{ Other der_var: \code{\link{derive_var_aval_adis}()}, +\code{\link{derive_vars_crit}()}, \code{\link{derive_vars_max_flag}()}, \code{\link{derive_vars_merged_vaccine}()}, \code{\link{derive_vars_params}()}, diff --git a/man/derive_vars_max_flag.Rd b/man/derive_vars_max_flag.Rd index be5846e7..477cc67a 100644 --- a/man/derive_vars_max_flag.Rd +++ b/man/derive_vars_max_flag.Rd @@ -72,6 +72,7 @@ derive_vars_max_flag( \seealso{ Other der_var: \code{\link{derive_var_aval_adis}()}, +\code{\link{derive_vars_crit}()}, \code{\link{derive_vars_event_flag}()}, \code{\link{derive_vars_merged_vaccine}()}, \code{\link{derive_vars_params}()}, diff --git a/man/derive_vars_merged_vaccine.Rd b/man/derive_vars_merged_vaccine.Rd index 210683b8..b1c9eb97 100644 --- a/man/derive_vars_merged_vaccine.Rd +++ b/man/derive_vars_merged_vaccine.Rd @@ -78,6 +78,7 @@ derive_vars_merged_vaccine( \seealso{ Other der_var: \code{\link{derive_var_aval_adis}()}, +\code{\link{derive_vars_crit}()}, \code{\link{derive_vars_event_flag}()}, \code{\link{derive_vars_max_flag}()}, \code{\link{derive_vars_params}()}, diff --git a/man/derive_vars_params.Rd b/man/derive_vars_params.Rd index 8f69abbc..4c8a6b27 100644 --- a/man/derive_vars_params.Rd +++ b/man/derive_vars_params.Rd @@ -86,6 +86,7 @@ derive_vars_params( \seealso{ Other der_var: \code{\link{derive_var_aval_adis}()}, +\code{\link{derive_vars_crit}()}, \code{\link{derive_vars_event_flag}()}, \code{\link{derive_vars_max_flag}()}, \code{\link{derive_vars_merged_vaccine}()}, diff --git a/man/derive_vars_vaxdt.Rd b/man/derive_vars_vaxdt.Rd index 71aa7bfe..19aed604 100644 --- a/man/derive_vars_vaxdt.Rd +++ b/man/derive_vars_vaxdt.Rd @@ -71,6 +71,7 @@ derive_vars_vaxdt( \seealso{ Other der_var: \code{\link{derive_var_aval_adis}()}, +\code{\link{derive_vars_crit}()}, \code{\link{derive_vars_event_flag}()}, \code{\link{derive_vars_max_flag}()}, \code{\link{derive_vars_merged_vaccine}()},