Displaying 1 result from an estimated 1 matches for "ppccnorm".
2008 Sep 15
0
how to calculate PPCC?
...qweibull(pp, shape=shape, scale=scale), x)} /
I clearly read, "/only for weibull"/ however I wrote similar functions
for /normal, exponential, poisson, and lognormal. /
Could someone says me if these functions are correct? Are there other
ways to estimate the correlation coefficient?
/PPCCNORM <- function(x,mean,sd) {
x <- sort(x)
pp <- ppoints(x)
cor(qnorm(pp,mean=mean,sd=sd),x)
}
PPCCLOG <- function(x,mean,sd) {
x <- sort(x)
pp <- ppoints(x)
cor(qlnorm(pp,meanlog=mean,sdlog=sd),x)
}
PPCCPOIS <- function(x,lambda) {
x <- sort(x)
pp <- p...