Description Usage Arguments Value Examples
View source: R/simulate_long_egfr.R
Simulate longitudinal eGFR data
1 2 3 4 5 6 7 8 9 10 11 12 |
n |
Number of observations. |
id |
Name of the ID variable that will be used throughout. |
fixed_intercept |
Fixed intercept. |
fixed_slope |
Fixed slope. |
B |
Variance-covariance matrix of the random effects. |
sigma |
Standard deviation of the residual error term. |
lambda |
Parameter lambda of the baseline hazard for the exponential survival model. |
size |
Parameter |
prob |
Parameter |
origin |
If |
A data frame with simulate data for n
subjects.
1 2 3 4 5 6 7 | set.seed(42)
df <- simulate_long_egfr(n = 3)
df
set.seed(42)
df <- simulate_long_egfr(n = 3, origin = as.Date("2006-01-01"))
df
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.