Message-ID: <1353758784430-4650640.post@n4.nabble.com>
Date: 2012-11-24T12:06:24Z
From: Thomas Schu
Subject: Student-t distributed random value generation within a confidence interval?
In-Reply-To: <loom.20121123T203621-247@post.gmane.org>
allvals <- rt(1000,df=11)
## 1000 samples is overkill: slightly more than
## 500*(1.05) should be large enough
subvals <- (allvals[abs(allvals)<qt(0.975,df=11)])
vals <- m+subvals[1:500]*s/sqrt(n)
I'm subsetting before transforming, it seems slightly easier.
</quote>
Thank you very much bbolker. It works very well!
Best regards
Thomas
--
View this message in context: http://r.789695.n4.nabble.com/Student-t-distributed-random-value-generation-within-a-confidence-interval-tp4650561p4650640.html
Sent from the R help mailing list archive at Nabble.com.