Description Usage Arguments Value Examples
Simulate change in HAQ at 6 months using different model structures relating treatment to HAQ.
1 2 3 4 | sim_dhaq6(treatments, input_data, pars,
tx_lookup = iviRA::treatments$sname, hist = c("naive",
"experienced"), line = 1, tx_ihaq = c("acr-haq", "acr-eular-haq",
"haq"))
|
treatments |
Vector of treatments to simulate. Should correpond to |
input_data |
An object of class |
pars |
List of sampled parameter values generated from get_input_data. The only
elements required are |
tx_lookup |
Vector of treatments with names equivalent to |
hist |
Is the patient tDMARD naive or tDMARD experienced? |
line |
Line of therapy |
tx_ihaq |
Equivalent to argument |
A data.table
with the following columns:
Treatment index based on tx_lookup
.
The model structure component relating treatment to change in HAQ
(i.e., tx_ihaq
).
Simulation number denoting a randomly sampled parameter set from sample_pars.
ID number denoting a simulated patients (e.g., from sample_pop).
Change in HAQ score from baseline at 6 months.
1 2 3 4 5 6 7 | pop <- sample_pop(n = 10)
input.dat <- get_input_data(pop = pop)
parsamp <- sample_pars(n = 10, input_data = input.dat)
sim <- sim_dhaq6(treatments = c("cdmards", "adamtx"), input_data = input.dat,
pars = parsamp, tx_ihaq = c("acr-haq", "acr-eular-haq"))
head(sim)
tail(sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.