[R] standard error for median

2009-03-07 Thread Ralph Scherer
Dear all,

is it possible to estimate a standard error for the median?
And is there a function in R for this?
I want to use it to describe a skewed distribution.

Thanks in advance,
Ralph

[[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.


Re: [R] standard error for median

2009-03-07 Thread Ralph Scherer
Dear Prof. Ripley,

thank you for your fast answer.
But which book do you mean?
I can't find an MASS book.
Do you mean the R book?

Best wishes,
Ralph



Am Samstag, den 07.03.2009, 21:24 + schrieb Prof Brian Ripley:

 It is an example (both via asymptotic theory and the bootstrap) in 
 chapter 5 of MASS (the book).  The functions used are in the scripts 
 of the MASS package, but you will need to understand the theory being 
 used as described in the book.
 
 On Sat, 7 Mar 2009, Ralph Scherer wrote:
 
  Dear all,
 
  is it possible to estimate a standard error for the median?
  And is there a function in R for this?
  I want to use it to describe a skewed distribution.
 
  Thanks in advance,
  Ralph
 
  [[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.
 
 

[[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.


Re: [R] standard error for median

2009-03-07 Thread Ralph Scherer
Ok, found it.
Thanks.


Am Samstag, den 07.03.2009, 22:34 +0100 schrieb Ralph Scherer:

 Dear Prof. Ripley,
 
 thank you for your fast answer.
 But which book do you mean?
 I can't find an MASS book.
 Do you mean the R book?
 
 Best wishes,
 Ralph
 
 
 
 Am Samstag, den 07.03.2009, 21:24 + schrieb Prof Brian Ripley: 
 
  It is an example (both via asymptotic theory and the bootstrap) in 
  chapter 5 of MASS (the book).  The functions used are in the scripts 
  of the MASS package, but you will need to understand the theory being 
  used as described in the book.
  
  On Sat, 7 Mar 2009, Ralph Scherer wrote:
  
   Dear all,
  
   is it possible to estimate a standard error for the median?
   And is there a function in R for this?
   I want to use it to describe a skewed distribution.
  
   Thanks in advance,
   Ralph
  
 [[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.
  
  

[[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.


[R] simulate data from multinomial distribution with overdispersion

2008-09-30 Thread Ralph Scherer

Dear list members,

I am searching for a way to simulate data from a multinomial 
distribution with overdispersion.
The data should describe counts of different species under different 
conditions.
Does someone know a way to simulate this or a book or article where I 
can find informations about this problem?


Thanks and greetings,
Ralph

__
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.


Re: [R] R function which finds confidence interval for binomial variance

2008-09-25 Thread Ralph Scherer
Hello Robert,

would it be an idea to construct CI's with bootstrap methods?
If yes, you can use package boot, based on the book of Davison  Hinkley or 
the package bootstrap, based on the book of Efron Tibshirani.
You can put the estimator inside for argument theta.

Bests,
Ralph

Am Thursday 25 September 2008 07:56:56 schrieb Robert A. LaBudde:
 I need to construct confidence intervals for the binomial variance.
 This is the usual estimate

   v = x*(n-x)/n

 or its unbiased counterpart

   v' = x*(n-x)/(n-1)

 where x = binomial number of successes observed in n Bernoulli trials
 from proportion p.

 The usual X^2 method for variance confidence intervals will not work,
 because of the strong non-normal character of the sampling
 distribution for v (or v').

 Does anyone know of an R package with R function that computes a
 reasonable confidence interval for v or v'?

 Thanks.
 
 Robert A. LaBudde, PhD, PAS, Dpl. ACAFS  e-mail: [EMAIL PROTECTED]
 Least Cost Formulations, Ltd.URL: http://lcfltd.com/
 824 Timberlake Drive Tel: 757-467-0954
 Virginia Beach, VA 23464-3239Fax: 757-467-2947

 Vere scire est per causas scire

 __
 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.

__
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.


Re: [R] Graphics winder keeps disappearing!

2008-09-25 Thread Ralph Scherer
Hi Lauren,

try it with dev.off() before plotting.
Perhaps you have an old window or connection open somewhere.

Bests,
Ralph

Am Thursday 25 September 2008 14:24:17 schrieb Gough Lauren:
 Dear all,

 I am a very new user to R (for windows) (since Monday!) so please excuse
 me if I am asking an obvious question!

 I am experiencing some problems with the graphics window - in short, it
 keeps disappearing.  i.e. I can type

  x-c(1,3,6,4,9)
  plot(x)

 No errors are produced, but not graphics window appears either.

 The graphics window tends to work if I plot graphs immediately after
 opening R, but after I have had R open for a while and have run several
 functions/loaded datasets it stops appearing.

 Does anyone know why this is, I am a little confused!

 Many thanks

 Lauren

 PhD student
 School of Geography
 University Park
 University of Nottingham
 NG7 2RD


 This message has been checked for viruses but the contents of an attachment
 may still contain software viruses, which could damage your computer
 system: you are advised to perform your own checks. Email communications
 with the University of Nottingham may be monitored as permitted by UK
 legislation.

 __
 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.

__
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.


[R] time calculation for simulation

2008-09-24 Thread Ralph Scherer
Hello list,

I want to compare time needed for a simulation between R and Ra (time 
optimized loops).
Does anybody know, how I can count time needed for a simulation in R?

Bests,
Ralph

__
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.