npnorm: non-parametric normal distribution

Description Usage Arguments Details

Description

The density and the distribution function of non-parametric normal distribution

Usage

1
2
3
4
5
6
7
dnpnorm(x, mu0 = 0, pi0 = 1, sd = 1, log = FALSE)

pnpnorm(x, mu0 = 0, pi0 = 1, sd = 1, lower.tail = TRUE, log.p = FALSE)

dnpnorm1(x, mu0 = 0, pi0 = 1, sd = 1, lower.tail = TRUE, log.p = FALSE)

pnpnorm1(x, mu0 = 0, pi0 = 1, sd = 1, lower.tail = TRUE, log.p = FALSE)

Arguments

x

vector of observations, vector of quantiles

mu0

the vector of support points

pi0

the vector of weights correponding to the support points

sd

standard deviation.

log, log.p

logical; if TRUE, the result will be given in log scale.

lower.tail

logical; if TRUE, the lower probability is computed

Details

dnpnorm gives the density, pnpnorm gives the distribution function, pnpnorm1 focus on the more accurate but slower distribution function of a non-parametric normal distribution


xiangjiexue/npfixedcompR documentation built on Jan. 1, 2021, 11:39 p.m.