Chuck,

Quite right.  Thank you.

Regards, -Cody

-----Original Message-----
From: Chuck Cleland [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 4:33 PM
To: Cody Hamilton
Cc: [email protected]
Subject: Re: [R] Subscript out of bounds when using datadist() from Design 
library

Cody Hamilton wrote:
> I am running R version 2.4.1 on Windows XP.  I have a question regarding the 
> datadist() function from the Design library.  I have a data.frame (call it 
> my.data) with 4 columns.  When I submit the code
>
> datadist(data=my.data)
>
> I get the following error message:
>
> Error in X[[1]] : subscript out of bounds
>
> I suspect there may be something wrong with my data.frame (I'm certain there 
> is nothing wrong with datadist()), but I don't know what.  Has anyone 
> experienced the mistake I seem to be making?

  If I follow the help page for datadist(), I think you want the following:

datadist(my.data)

  Note the following in the description of the data argument:

"Unless the first argument is a fit object, data must be an integer."

  A data frame is not a fit object, so I think that was the reason it
did not work for you.

> Regards,
> Cody Hamilton
> Edwards Lifesciences
> ______________________________________________
> [email protected] 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.

--
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________
[email protected] 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.

Reply via email to