powered by
Generate a dataframe with `t`, `pos` and `tot` columns from `t` and `seropositive` vectors.
transform_data(t, spos, heterogeneity_col = "t")
dataframe in aggregated format
the time vector.
the seropositive vector.
new name for the time vector (default to "t")
df <- hcv_be_2006 hcv_df <- transform_data(df$dur, df$seropositive) hcv_df
Run the code above in your browser using DataLab