get_ecd_values | R Documentation |
Test function, test applicability of poisson test, by calculating
the bootstrapped probability of obtaining a specific p-value or lower, use
in combination with sim_studies()
.
get_ecd_values(df_sim_studies, df_sim_sites, val_str)
df_sim_studies |
dataframe, generated by |
df_sim_sites |
dataframe, generated by |
val_str |
c("prob_low","pval") |
trains a ecdf function for each studies based on the results
of sim_studies()
dataframe with the following columns:
study identification
site identification
median(max(visit)) * 0.75
mean AE at visit_med75 site level
mean AE at visit_med75 study level
p-value as returned by poisson.test
p-value as returned by poisson.test
df_visit <- sim_test_data_study(n_pat = 100, n_sites = 5,
frac_site_with_ur = 0.4, ur_rate = 0.3)
df_visit$study_id <- "A"
df_site <- site_aggr(df_visit)
df_sim_sites <- sim_sites(df_site, df_visit, r = 100)
df_sim_studies <- sim_studies(
df_site = df_site,
df_visit = df_visit,
r = 3,
parallel = FALSE,
poisson_test = TRUE,
prob_lower = TRUE
)
get_ecd_values(df_sim_studies, df_sim_sites, "prob_low")
get_ecd_values(df_sim_studies, df_sim_sites, "pval")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.