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.
This is not a homework help list. On Saturday, November 10, 2012, parvez_200207 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 <javascript:;> 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. >-- Sarah Goslee http://www.stringpage.com http://www.sarahgoslee.com http://www.functionaldiversity.org [[alternative HTML version deleted]]
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.rana@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. 538280@gmail.com [[alternative HTML version deleted]]
On 10-11-2012, at 19:23, parvez_200207 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. >What is your actual question? You have calculated what you were supposed to. I guessing that the result wasn't what you expected. I'm not going to give you a ready made answer to a question you didn't ask. In an R console do ?rweibull and read carefully about the shape and scale arguments in the Details section. That should help you to understand your results. Berend> 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 at 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.