snp.leg: snp.leg

Description Arguments Value Author(s) Examples

Description

snp.leg implement seminonparametric representation of density and distribution function defined on the unit interval

Arguments

u

scalar or vector from the unit interval

delta

parametrization

Value

Function returns a vector pdf.cdf values

Author(s)

Konrad Smolinski

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
n <- 200
delta <- c(1,2,2-3,4) 
u <- seq(from=0.001,to=.999,len=n)
delta <- as.matrix(delta)

pdf.leg <- dsnp.leg(u,delta)
cdf.leg <- psnp.leg(u,delta)

par(mfrow=c(2,1))
plot(pdf.leg, type='l',col='2')
plot(cdf.leg, type='l',col='2')

irt documentation built on May 2, 2019, 4:53 p.m.

Related to snp.leg in irt...