Hi All, 

First of all, I would like to wish you all a Happy New Year, full of 
creativity, inspiration and prosperity. 

Now, I have a data set with two uneven size parameters  which is the following:
        x1            x2
1      0.98        0.952      0.99        0.98
3      1.11        1.01
4      1.22        1.12
5      1.35        1.25
6      1.45        1.42
7      1.54        1.51
8      1.68        1.67
9      1.75        1.71
10    1.89        1.9011    1.99        NA12    2.11        NA13    2.25        
NA14    2.35        NA15    2.55        NA
I would like to fit and plot distribution in those variables and have them as 
well in the same plot to show the difference; I get an error for the variable, 
x2, which has missing values. 

install fitdistrplus
> fitdist(x1, plnorm)
> plot(x1, plnorm(x1, meanlog=-0.2825, sdlog=0.308), type="l")
> plot(ecdf(x1), cex=0.2, add=TRUE)> fitdist(x2, plnorm)Error in if (any(data 
> <= 0)) stop("values must be positive to fit a lognormal distribution")
I would very much appreciate your help. 

Thank you. 

Kind regardsMaria

   
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to