calc_expected_: Calculate expected values for the given variable.

View source: R/utils.R

calc_expected_R Documentation

Calculate expected values for the given variable.

Description

Calculate expected values for the given variable.

Usage

calc_expected_(vector, fun = stats::qnorm, seed = NULL, na.rm = TRUE, ...)

Arguments

vector

a numeric vector.

fun

a function used for generation of the distribution, qnorm by default.

seed

seed to be set for random number generation. If NULL, no seed is set.

na.rm

should NA's be removed from the input vector?

...

extra arguments passed to fun.

Details

credits to: https://stackoverflow.com/questions/43217104/coloring-points-in-a-geom-qq-plot.

Value

A numeric vector of the same length as vector with the expected values.


PiotrTymoszuk/ExDA documentation built on Nov. 17, 2024, 5:46 p.m.