[R] About princomp

2005-09-16 Thread Matthieu Cornec
Hi, I run the example for princomp for R211 I got the following error for biplot ## The variances of the variables in the ## USArrests data vary by orders of magnitude, so scaling is appropriate (pc.cr http://pc.cr - princomp(USArrests)) # inappropriate Erreur dans cov.wt(z) : 'x' must

[R] Using time series and lm

2005-02-18 Thread Matthieu Cornec
) but how do I get a time serie of residuals instead of a vector residuals(fit)? ## Matthieu Cornec __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

[R] Using sweave

2005-02-18 Thread Matthieu Cornec
hello, Suppose in Rnw file, I compute a numeric of name x containing the value 1. In my tex file, I want to write Let x= the real value of x so that I can see in my dvi file : Let x = 1, with 1, the actual value of x written in a math environnement for example. Thanks, Matthieu

[R] Using time series and lm

2005-03-02 Thread Matthieu Cornec
Hello, I apologize for this question that may has been asked a lot of times but I could not go through it. I create a multivariate time series containing NA values. (This dataset of time series can come directly from an imported file). I want to compute a linear regression and obtain a time

[R] Concatenate vector into string

2005-03-04 Thread Matthieu Cornec
Hello, I would like to convert c(a,b,c) into abc. Anyone could help? Thanks, Matthieu Cornec __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

[R] lm and time series

2005-03-04 Thread Matthieu Cornec
of a vector residuals(fit)? ## Matthieu Cornec __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Aggregate lag

2005-05-10 Thread Matthieu Cornec
hello, Does anybody know how to aggregate a lag series ? when I try to use aggregate I get the following message try-ts(1:100,start=c(1985,1),freq=12) aggregate(try,4,mean,na.rm=T) Qtr1 Qtr2 Qtr3 Qtr4 1985258 11 1986 14 17 20 23 1987 26 29 32 35 1988 38 41

[R] help with texi2dvi

2005-05-13 Thread Matthieu Cornec
Hello, Does anyone know how to write the files created by the call of texi2dvi in another directory ? Thanks, Matthieu __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] Help with read.csv2

2005-11-17 Thread Matthieu Cornec
Hello, I am importing the following file ;aa;bb;cc 1988;12;12;12 1989;78;78;12 1990;78;78;12 1991;78;78;12 1992;78;78;12 1993;78;78;12 1994;78;78;12 data-read.csv2(test.csv,header=T) -- it gives X aa bb

[R] Help with xtable

2005-11-21 Thread Matthieu Cornec
Hello, How do you change the size of the caracters (tiny, small) using xtable? It works out for print.xtable when typing print.xtable(xtable(mydata),size=small) but I do not see any results when doing xtable(mydata,size=small) Anyone could help ? Thanks Matthieu [[alternative HTML

[R] Question about Aggregate

2006-01-25 Thread Matthieu Cornec
hello, Suppose you a monthly series you want to aggregate at a quaterly frequency with the start and the end of your series in the middle of the quarter. For example 2001M2 2001M3 2001M4 2001M5 2001M6 2001M7 12 13 12 14 16 15 how can you get

[R] Help using Sweave with wireframe or cloud

2007-02-22 Thread Matthieu Cornec
Hi, I used the sweave package to get a 3D plot echo=F,fig=F= wireframe(volcano, shade = TRUE, aspect = c(61/87, 0.4), light.source = c(10,0,10)) @ but it gives an error message for the pdf file of this picture. Any one could help ? Thanks in advance, Matthieu