Hi peter, Quite an insight you have there hehe. i am continuing on from the orignal problem of creating a simulation.
Im now trying to find (nâ1)S2/Ï2, and fit it to a chi squared dist with 5 degrees of freedom. im having trouble with the coding for this. i think for the second part of that i need to use the fitdist function, but to get it to where i am able to do that, im not sure what to do. THis is what i have been trying to do so far, but it hasn't returned me anything good sum((x-mean(x))^2)/(length(x)-1) i am really confused, can someone please help? Cheers > Date: Thu, 14 May 2009 12:05:30 +0100 > From: b.rowling...@lancaster.ac.uk > To: peterflomconsult...@mindspring.com > CC: waclaw.marcin.kusnierc...@idi.ntnu.no; r-help@r-project.org > Subject: Re: [R] Simulation > > > As a beginner, I agree .... the for loop is much clearer to me. > > > > [Warning: Contains mostly philosophy] > > To me, the world and how I interact with it is procedural. When I want > to break six eggs I do 'get six eggs, repeat "break egg" until all > eggs broken'. I don't apply an instance of the break egg function over > a range of eggs. My world is not functional (just like me, some might > say...). Neither do I send a 'break yourself' message to each egg - my > world is not object-oriented. > > That does not mean that these paradigms are not good ways of writing > computer programs - they are brilliant ways of writing computer > programs. But they build on procedural concepts, and we don't teach > children to run before they can walk. > > So when someone says 'how do I do this a thousand times?' on R-help, > I'll assume their knowledge level is that of a beginner, and try to > map the solution to their world view. > > Computer scientists will write their beautiful manuscripts, but how > many people who come to R because they want to do a t-test or fit a > GLM will read them? That's the R-help audience now. > > Barry > > ______________________________________________ > 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. _________________________________________________________________ [[elided Hotmail spam]] [[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.