This function calculates the Z score for a given value, relative to the mean and standard deviation for a variable in a given data frame.
Arguments
- df
data frame to read in.
- var1
the variable of interest for which the mean and standard deviations will be calculated.
- raw
the desired raw score to compare with the mean and standard deviation of
var1.- tails
to report a p-value (level of significance) for the reported Z score, user must select a desired number of tails (either
tails = 1for a one-tailed test, ortails = 2for a two-tailed test). Default set toNULL, and does not report a p-value.
