Your code works for me, can you tell us what output you are getting, what
output you expect to see, and how they differ?


On Sat, Nov 10, 2012 at 11:23 AM, parvez_200207 <parvez.r...@uef.fi> wrote:

> hi
> could you help me to solve this issue
>
> Question:
> Using command rweibull(100,8,15), simulate n = 100 realizations from
> Weibull(8; 15) distribution. Using the simulated sample, compute the sample
> mean, variance and standard deviation of these observations.
>
> I am trying like this
>
> sim<-rweibull(100,8,15) # simulated sample
> SM<-mean(sim) # simulated sample mean
> var(sim)      # variance
> sd(sim)       #SD
>
> Thank you in advance.
>
> Parvez
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/sample-mean-variance-and-SD-tp4649190.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> 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.
>



-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
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