z.calc | R Documentation |

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.

```
z.calc(df, var1, raw, tails = NULL)
```

`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 |

`tails` |
to report a p-value (level of significance) for the reported Z score, user must select a desired number of tails (either |

This function returns the raw score, mean, and z-score for a given raw score.

```
data <- mtcars
z.calc(data,mpg,12)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.