Assess stability of values that correspond to a single identifier

StabilityTestingAcrossVisits(
  inputted.data,
  col.name.of.unique.identifier,
  value.to.evaluate
)

Arguments

inputted.data

A dataframe.

col.name.of.unique.identifier

A string that specifies name of column in inputted.data containing unique identifiers.

value.to.evaluate

A string that specifies name of column in inputted.data to look at for stability of values.

Value

A dataframe with the unique.identifiers as rows and the standard deviation of the values. If a individual only has one row in the original dataframe, the SD value will be NA.

See also

Examples

identifier.col <- c("a", "a", "a", "b", "b", "b", "c") value.col <- c(1, 2, 3, 1, 1, 1, 5) input.data.frame <- as.data.frame(cbind(identifier.col, value.col)) results <- StabilityTestingAcrossVisits(input.data.frame, "identifier.col", "value.col") results
#> ID standard.deviation.of.val #> 1 a 1 #> 2 b 0 #> 3 c NA