# Probability density function
dSSP(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(0.3, 0.5, 1.0, 7.5, -1.0, -0.5, 0.5, 1.5, 3.75, 3.75, 3.75, 1.0,
0.75, 0.0, 0.0, 1.0))
# Cumulative distribution function
pSSP(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(0.3, 0.5, 1.0, 7.5, -1.0, -0.5, 0.5, 1.5, 3.75, 3.75, 3.75, 1.0,
0.75, 0.0, 0.0, 1.0))
# Random sampling
rSSP(n = 100, phi = c(0.3, 0.5, 1.0, 7.5, -1.0, -0.5, 0.5, 1.5, 3.75, 3.75, 3.75,
1.0, 0.75, 0.0, 0.0, 1.0))
Run the code above in your browser using DataLab