Description Usage Arguments Value Examples
View source: R/generate_data.R
The function generate_data generates example survival data
1 2 3 4 |
true_beta |
true parameters |
F_pre |
a unique list of facilities |
gamma |
true facility effects of each facility, notice length of gamma must be the same as length of F_pre |
mean_sample_size |
expected sample size of each facility (stratum), a scalar same in all facilities |
Sigma_z1 |
Var-Cov matrix of design matrix |
censoring_up_bound |
maximum value that the censoring time can take |
censoring_trunc |
maximum observation time |
order |
whether the output data should be ordered by time |
a list of generated data:
delta |
event indicator |
z |
design matrix |
facility |
which facility each patient belongs to |
num_facility |
number of facilities (strata) |
time |
obseved time for each patient |
true_beta |
true parameters |
N |
number of patients |
1 | surv_dat = generate_data()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.