Professional Documents
Culture Documents
Warning messages:
1: package maxLik was built under R version 3.2.3
2: package miscTools was built under R version 3.2.3
> theta=c(0.00007181,3.148,0.145,49.05)
> theta[1]
[1] 7.181e-05
> pdf<-function(theta){theta[1]*theta[2]*theta[3]*((xi/theta[4])^(theta[2]-1))*(
exp(((xi/theta[4])^theta[2])+(theta[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))
))*(1-(exp(theta[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))^(theta[3]-1)}
> pdf
function(theta){theta[1]*theta[2]*theta[3]*((xi/theta[4])^(theta[2]-1))*(exp(((x
i/theta[4])^theta[2])+(theta[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))*(1-(
exp(theta[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))^(theta[3]-1)}
> theta[1]*theta[2]*theta[3]*((xi/theta[4])^(theta[2]-1))*(exp(((xi/theta[4])^th
eta[2])+(theta[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))*(1-(exp(theta[1]*t
heta[4]*(1-(exp(xi/theta[4])^theta[2])))))^(theta[3]-1)
[1] 9.754431e-06 2.324242e-05 3.816934e-05 5.381775e-05 6.979629e-05 8.585644e05
[7] 1.018291e-04 1.175956e-04 1.330722e-04 1.482007e-04
> pdf<-theta[1]*theta[2]*theta[3]*((xi/theta[4])^(theta[2]-1))*(exp(((xi/theta[4
])^theta[2])+(theta[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))*(1-(exp(theta
[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))^(theta[3]-1)
> plot(xi,pdf)
> xi<-c(0.1,0.2,1,1,1,1,1,2,3,6,7,11,12,18,18,18,18,18,21,32,36,40,45,46,47,50,5
5,60,63,63,67,67,67,67,72,75,79,82,82,83,84,84,84,85,85,85,85,85,86,86)
> pdf
[1] 9.754431e-06 2.324242e-05 3.816934e-05 5.381775e-05 6.979629e-05 8.585644e05
[7] 1.018291e-04 1.175956e-04 1.330722e-04 1.482007e-04
> pdf<-theta[1]*theta[2]*theta[3]*((xi/theta[4])^(theta[2]-1))*(exp(((xi/theta[4
])^theta[2])+(theta[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))*(1-(exp(theta
[1]*theta[4]*(1-(exp(xi/theta[4])^theta[2])))))^(theta[3]-1)
> pdf
[1] 5.093771e-07 1.244721e-06 9.754431e-06 9.754431e-06 9.754431e-06 9.754431e06
[7] 9.754431e-06 2.324242e-05 3.816934e-05 8.585644e-05 1.018291e-04 1.629425e04
[13] 1.772745e-04 2.546822e-04 2.546822e-04 2.546822e-04 2.546822e-04 2.546822e04
[19] 2.887439e-04 4.075998e-04 4.585911e-04 5.213802e-04 6.276666e-04 6.542025e04
[25] 6.829785e-04 7.854481e-04 1.032107e-03 1.436811e-03 1.807310e-03 1.807310e03
[31] 2.551578e-03 2.551578e-03 2.551578e-03 2.551578e-03 4.195751e-03 5.865649e03
[37] 9.573590e-03 1.427159e-02 1.427159e-02 1.639904e-02 1.889711e-02 1.889711e02
[43] 1.889711e-02 2.183584e-02 2.183584e-02 2.183584e-02 2.183584e-02 2.183584e02
[49] 2.529896e-02 2.529896e-02
> plot(xi,pdf)
> hist(Xi, main="Probability Density Function", right=FALSE, prob=TRUE)
Error in hist(Xi, main = "Probability Density Function", right = FALSE, :
object 'Xi' not found
> hist(xi, main="Probability Density Function", right=FALSE, prob=TRUE)
> hist(xi, main="Probability Density Function", right=TRUE, prob=TRUE)
> hist(xi, main="Probability Density Function", right=FALSE, prob=TRUE)
> hist(xi, main="Probability Density Function", right=TRUE, prob=TRUE)
> hist(xi, main="Probability Density Function", right=FALSE, prob=TRUE)