Re: [R] Writing list object to a file

From: Arun Kumar Saha <arun.kumar.saha_at_gmail.com>
Date: Wed, 23 Apr 2008 13:28:47 +0530

Previous question that I asked was originated from this problem :

suppose I have following time series :

library(zoo)
date1 = seq(as.Date("01/01/01", format = "%m/%d/%y"), as.Date("12/31/08", format = "%m/%d/%y"), by = 1)
len1 = length(date1); data1 = zoo(matrix(rnorm(len1, mean=0, sd=0.5), nrow = len1), date1)
Now I group those time series observation month wise : data2 = split(as.data.frame(data1), format(index(data1), "%Y%m")

Now I want to perform Levene test (
http://en.wikipedia.org/wiki/Levene's_test) to test whether the variance for each group (here month) is significantly different or not.

Can anyone suggest me any easiest way how to construct the test statistic, described above?

Thanks

On Wed, Apr 23, 2008 at 12:21 PM, Arun Kumar Saha <arun.kumar.saha_at_gmail.com> wrote:

> Hi all,
>
> I am wondering how to write a 'list' object to a file. I already gone
> through some threads like
> http://mail.python.org/pipermail/python-list/2001-April/080639.html,
> however could not trace out any reliable solution. I tried following :
>
> > write.table(calc, file="c:/data.csv")
> Error in data.frame("200501" = c(-0.000387071806652095,
> -0.000387221689252648, :
> arguments imply differing number of rows: 25, 24, 16, 17, 18, 26, 27,
> 19, 23, 20, 11
> Anybody can help?
>
> Regards,
>

--

	[[alternative HTML version deleted]]

______________________________________________
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.
Received on Wed 23 Apr 2008 - 08:01:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Apr 2008 - 08:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive