Nothing
#' @export
#' @import VaRES
d_burr <- function(k, c) {
pdf_E <- function(x, k, c) {
g=VaRES::dburr7(x, k, c)
return(g)
}
burr_mom <- function(k, c, r) {
f <- function(k, c, r, x) {
(x^(r))*(pdf_E(x,k, c))
}
y=integrate(f,lower=0,upper=Inf,subdivisions=1000000,k=k,c=c, r=r)$value
return(y)
}
m1 <- burr_mom(k, c, 1)
m2 <- burr_mom(k, c, 2)
m3 <- burr_mom(k, c, 3)
m4 <- burr_mom(k, c, 4)
mu1 <- m1
mu2 <- m2-(m1)^2
mu3 <- m3-3*(m1*m2)+2*(m1)^3
mu4 <- m4-4*m3*m1+6*m2*(m1)^2-3*(m1)^4
beta_1 <- (mu3^2)/(mu2^3)
gamma_1 <- sqrt(beta_1)
beta_2 <- mu4/(mu2)^2
gamma_2 <- (beta_2)-3
COV <- (sqrt(mu2)/mu1)*100
med_burr <- VaRES::varburr7(0.5, k, c)
qd_burr <- (VaRES::varburr7(0.75, k, c)-VaRES::varburr7(0.25, k, c))/2
aux <- cbind(m1, m2, m3, m4)
colnames(aux) = c("Ist", "2nd", "3rd", "4th")
aux1 <- cbind(mu1, mu2, mu3, mu4)
colnames(aux1) = c("Ist", "2nd", "3rd", "4th")
aux2 <- cbind(mu1, mu2)
colnames(aux2) = c("mean", "variance")
aux3 <- cbind(gamma_1, gamma_2)
colnames(aux3) = c("Skewness", "Kurtosis")
aux4 <- cbind(COV)
colnames(aux4) = c("")
aux5 <- cbind(med_burr)
colnames(aux5) = c("")
aux6 <- cbind(qd_burr)
colnames(aux6) = c("")
list("First four ordinary moments"= round(aux,4), "First four central moments"= round(aux1,4), "mean and variance"=round(aux2,4), "Skewness and Kurtosis"=round(aux3,4), "Coefficient of variation"=round(aux4,4), "Median"=round(aux5,4),"Quartile deviation"=round(aux6,4))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.