Description Usage Arguments Examples
Computes Anderson-Darling goodness of fit test statistic given that the data follows a specified parametric distribution.
1 | compute_AD(data, dist, time = "time", censor = "censor")
|
data |
A dataframe containing a time column and a censor column. |
dist |
A string name for a distribution that has a corresponding density function and a distribution function. Examples include "norm", "lnorm", "exp", "weibull", "logis", "llogis", "gompertz", etc. |
time |
The string name of the time column of the dataframe. Defaults to "time". |
censor |
The string name of the censor column of the dataframe. Defaults to "censor". The censor column must be a numeric indicator variable where complete times correspond to a value of 1 and incomplete times correspond to 0. |
1 2 3 | data("rearrest")
compute_AD(rearrest, "lnorm", time = "months")
compute_AD(rearrest, "weibull", time = "months")
|
[1] 284.0479
[1] 283.9084
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.