[R] Generating data when mean and 95% CI are known

Ken vicvoncastle at gmail.com
Thu Sep 8 04:43:01 CEST 2011


R can tell you how many possible answers there are with those givens though:
  ?Inf 
 Really though, you can get at some information if you are willing to set one of those definitively. I.e. If you set sample size you can 'find' data which match specs but isn't going to be applicable to anything because there is probably more to the story distributionally. If you can assume, say a normal distribution you are ?rnorm and ?quantile away from Monte Carlo-ing a good part of the story yourself for conclusions.
     Best of luck, and sorry for the bad R jokes.
      Ken Hutchison
     

On Sep 7, 2554 BE, at 10:22 PM, Rolf Turner <rolf.turner at xtra.co.nz> wrote:

> On 08/09/11 09:51, Tyler Hicks wrote:
>> Is there a function in R that will generate data from a known mean and 95% CI? I do not know the distribution or sample size of the original data.
> 
> No.  R is wonderful, but it cannot work magic.
> 
>    cheers,
> 
>        Rolf Turner
> 
> ______________________________________________
> 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.



More information about the R-help mailing list