-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_fake_trial_ds.Rd
65 lines (50 loc) · 2 KB
/
make_fake_trial_ds.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fn_make.R
\name{make_fake_trial_ds}
\alias{make_fake_trial_ds}
\title{Make fake trial dataset}
\usage{
make_fake_trial_ds(
ds_tb,
id_var_nm_1L_chr = "fkClientID",
round_var_nm_1L_chr = "round",
round_lvls_chr = c("Baseline", "Follow-up"),
match_on_vars_chr,
cmprsn_var_nm_1L_chr = "study_arm_chr",
cmprsn_groups_chr = c("Intervention", "Control"),
fns_ls,
var_nms_chr,
abs_mean_diff_dbl,
diff_sd_dbl,
multiplier_dbl,
min_dbl,
max_dbl,
integer_lgl,
match_idx_var_nm_1L_chr = "match_idx_int"
)
}
\arguments{
\item{ds_tb}{Dataset (a tibble)}
\item{id_var_nm_1L_chr}{Identity variable name (a character vector of length one), Default: 'fkClientID'}
\item{round_var_nm_1L_chr}{Round variable name (a character vector of length one), Default: 'round'}
\item{round_lvls_chr}{Round levels (a character vector), Default: c("Baseline", "Follow-up")}
\item{match_on_vars_chr}{Match on variables (a character vector)}
\item{cmprsn_var_nm_1L_chr}{Comparison variable name (a character vector of length one), Default: 'study_arm_chr'}
\item{cmprsn_groups_chr}{Comparison groups (a character vector), Default: c("Intervention", "Control")}
\item{fns_ls}{Functions (a list)}
\item{var_nms_chr}{Variable names (a character vector)}
\item{abs_mean_diff_dbl}{Absolute mean difference (a double vector)}
\item{diff_sd_dbl}{Difference standard deviation (a double vector)}
\item{multiplier_dbl}{Multiplier (a double vector)}
\item{min_dbl}{Minimum (a double vector)}
\item{max_dbl}{Maximum (a double vector)}
\item{integer_lgl}{Integer (a logical vector)}
\item{match_idx_var_nm_1L_chr}{Match index variable name (a character vector of length one), Default: 'match_idx_int'}
}
\value{
Updated dataset (a tibble)
}
\description{
make_fake_trial_ds() is a Make function that creates a new R object. Specifically, this function implements an algorithm to make fake trial dataset. The function returns Updated dataset (a tibble).
}
\keyword{internal}