Description Usage Arguments Details Value See Also Examples
This function performs a simple consistency check on an observed and simulated dataset to make sure they are consistent with respect to ordering as required by the other functions used in the VPC calculation.
1 | check_order(obs, sim, tol = 1e-05)
|
obs, sim |
A 'data.frame' with 2 columns (see Details). |
tol |
A tolerance for comparing time values. |
The consistency check is performed by comparing a combination of unique subject identifier (ID) and time. Both 'data.frame's must be given with those in positions 1 and 2 repectively.
The number of replicates contained in 'sim'.
1 2 3 4 5 6 7 8 9 | ## Not run:
library(vpc)
exampleobs <- as.data.table(vpc::simple_data$obs)[MDV == 0]
examplesim <- as.data.table(vpc::simple_data$sim)[MDV == 0]
check_order(exampleobs[, .(ID, TIME)], examplesim[, .(ID, TIME)])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.