cum_normal_fun: Cumulative normal function

View source: R/cum_normal_fun.R

cum_normal_funR Documentation

Cumulative normal function

Description

Cumulative normal function.

Usage

cum_normal_fun(x, p)

Arguments

x

Vector of values of the explanatory variable.

p

Vector of parameters p = c(mean, standard_deviation).

Value

Probability at each x.

See Also

inv_cum_normal_fun

Examples

library(ggplot2)
xseq <- seq(0,4,.01)
yseq <- cum_normal_fun(xseq, c(2, .5))
curve <- data.frame(x = xseq, y = yseq)
ggplot2::ggplot(curve, aes(x = x, y = y)) + geom_line()

danilinares/quickpsy documentation built on Feb. 13, 2023, 8:44 p.m.