Re: [R] Questions about corARMA

2003-07-08 Thread Spencer Graves
a. Have you studied Mixed Effects Models in S and S-Plus by Jose C. Pinheiro, Douglas M. Bates (2000; Springer)? That book contains examples that might answer your question. b. Since you wrote y(t) and you say you are new to this list, I feel compelled to confirm that you know that

Re: [R] Characters and Numeric Values in One Matrix

2003-07-08 Thread Gavin Simpson
Hi Roland, Try the following names - c(Marge, Lisa, Homer, Bart, Maggie) ages - c(38,10,41,8,1) simpsons - data.frame(I(names), ages) simpsons names ages 1 Marge 38 2 Lisa 10 3 Homer 41 4 Bart8 5 Maggie1 str(simpsons) `data.frame': 5 obs. of 2 variables: $

RE: [R] Characters and Numeric Values in One Matrix

2003-07-08 Thread Rau, Roland
Thank you very much for the advice using data.frame(I(names), ages) I received two solutions within 15 minutes of my initial request. What a quick and nice counterexample for the often heard claim: Free Software does not give you any support! Thanks again, Roland

[R] Lattice graphs: lines, symbols and strips

2003-07-08 Thread Marta Rufino
Dear collegue, I have some questions about lattice graphs: 1. How can I introduce different lines in different graphs, from the same page? For example, in the upper row of graphs, I would like to have a line at 0.5, in the middle one at 0.3, and in the lower at 0.1. I am using panel.abline, but

Re: [R] Lattice graphs: lines, symbols and strips

2003-07-08 Thread Damon Wischik
3. How can I make that the symbol within the graph varies with two variables, for example when it is good I want to put a open circle and when it is bad a closed circle or for example, that each point gets the number of samples..., but this changes throughtout the graphs... It's not clear to

[R] readline and R

2003-07-08 Thread Jean Eid
Dear R users, I am trying to install R 1.7.1 on a sparc-sun-solaris2.8 system. although gnu readline is installed and works fine on the parent directory, R is not recognizing it. I get the following in the config.log file. configure:11627: checking for rl_callback_read_char in -lreadline

[R] Not able to save .Rhistory

2003-07-08 Thread Laurie Sindlinger
Hello all, I am an R beginner, and I have not been able to save my history when using R. When I try to use the command that is shown in the help pages: savehistory(file = .Rhistory) I receive an error message: Error in savehistory(file) : no history available to save Do any of you have

[R] rbind question

2003-07-08 Thread David Andel
Hi I am trying to replicate a vector in n rows for comparison purposes with another matrix. foo - c(1,2,3) bar - rbind(foo,foo) # does the trick for 2 rows bar - rbind(rep(foo,2)) # does something else How do I generate a matrix with all rows=foo without writing 'foo' n times as arg? Thanks,

RE: [R] rbind question

2003-07-08 Thread Liaw, Andy
Using the recyling rule: bar - matrix(foo, nrow=n, ncol=length(foo), byrow=TRUE) HTH, Andy -Original Message- From: David Andel [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:58 AM To: [EMAIL PROTECTED] Subject: [R] rbind question Hi I am trying to replicate a

Re: [R] rbind question

2003-07-08 Thread John Zhang
How about foo - c(1,2,3) bar - matrix(rep(foo, 5), ncol = length(foo), byrow = TRUE) Date: 8 Jul 2003 15:58:25 +0200 From: David Andel [EMAIL PROTECTED] To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-milter (http://amavis.org/)

RE: [R] rbind question

2003-07-08 Thread Wayne Jones
What about: matrix(rep(foo,2),ncol=length(foo),byrow=TRUE) -Original Message- From: David Andel [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 14:58 To: [EMAIL PROTECTED] Subject: [R] rbind question Hi I am trying to replicate a vector in n rows for comparison purposes with

Re: [R] rbind question

2003-07-08 Thread Emmanuel Paradis
Hi David, At 15:58 08/07/2003 +0200, vous avez écrit: Hi I am trying to replicate a vector in n rows for comparison purposes with another matrix. foo - c(1,2,3) bar - rbind(foo,foo) # does the trick for 2 rows bar - rbind(rep(foo,2)) # does something else This is because `rep()' is executed

Re: [R] rbind question

2003-07-08 Thread Sundar Dorai-Raj
David Andel wrote: Hi I am trying to replicate a vector in n rows for comparison purposes with another matrix. foo - c(1,2,3) bar - rbind(foo,foo) # does the trick for 2 rows bar - rbind(rep(foo,2)) # does something else How do I generate a matrix with all rows=foo without writing 'foo' n

Re: [R] rbind question

2003-07-08 Thread Göran Broström
On 8 Jul 2003, David Andel wrote: Hi I am trying to replicate a vector in n rows for comparison purposes with another matrix. foo - c(1,2,3) bar - rbind(foo,foo) # does the trick for 2 rows bar - rbind(rep(foo,2)) # does something else How do I generate a matrix with all rows=foo

Re: [R] rbind question

2003-07-08 Thread Patrick Burns
do.call(rbind, rep(list(foo), n)) Patrick Burns Burns Statistics [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and A Guide for the Unwilling S User) David Andel wrote: Hi I am trying to replicate a vector in n rows for comparison purposes with another

[R] (no subject)

2003-07-08 Thread Ramlau
Dear R users, I created a program for a simulation. It produces datasets and then it conducts some fits with the function coxph. Sometimes this function produces warnings, but I get only this warnings after finishing my program. Is there any possibility to get these hints earlier, maybe at once

Re: [R] readline and R installation

2003-07-08 Thread Martin Maechler
One way is setting the (or adding to an existing one) environment variable LD_LIBRARY_PATH to your directory (.../local/R/readline); there are other related ways described in the R Administration/Installation manual which I'd warmly recommend consulting here. If that is really /local/R/... I

[R] how to rename rows/columns of a matrix?

2003-07-08 Thread David Andel
Hi I get a matrix with the columns named like X13 X22 X1 X14 ..., i.e. not successively. That has it's good reasons, but now how can I rename the columns to X1 X2 X3 ...? Thanks a lot, David __ [EMAIL PROTECTED] mailing list

RE: [R] how to rename rows/columns of a matrix?

2003-07-08 Thread David Khabie-Zeitoune
If A is your matrix try: cnames(A) = paste(X, 1:ncol(A), sep=) -Original Message- From: David Andel [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 17:23 To: R-Project Subject: [R] how to rename rows/columns of a matrix? Hi I get a matrix with the columns named like X13 X22 X1 X14 ...,

RE: [R] how to rename rows/columns of a matrix?

2003-07-08 Thread David Khabie-Zeitoune
Sorry, that should have been colnames rather than cnames; i.e.: colnames(A) = paste(X, 1:ncol(A), sep=) -Original Message- From: David Andel [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 17:23 To: R-Project Subject: [R] how to rename rows/columns of a matrix? Hi I get a matrix with

[R] Variance Ratio Test

2003-07-08 Thread huan . huang
Dear all, I am programming on the *variance ratio test*, according to Lo and MacKinlay, 1988. I am wondering if there has been some official codes written for that. Many thanks and regards, Huan Huang This message and any attachments (the message) is\ intende...{{dropped}}

Re: [R] how to rename rows/columns of a matrix?

2003-07-08 Thread Peter Dalgaard BSA
[EMAIL PROTECTED] writes: This is what I would do: cc - NULL for(i in 1:ncol(x)) cc - c(cc, paste(X, i, sep='')) colnames(x) - cc where x is your matrix. R is a vectorized language: colnames(x) - paste(X, 1:ncol(x), sep='') will do. -- O__ Peter Dalgaard

RE: [R] exporting help

2003-07-08 Thread Wiener, Matthew
Perhaps you should read one of the introductory manuals in the Contributed Documentation section of cran.us.r-project.org. This will introduce many of the basic commands, and save you time and frustration. You will probably end up wanting to use either read.table or scan to get your data into R.

Re: [R] solving multiple parameter starting values in nlm

2003-07-08 Thread Michael Rennie
Hi, there At 12:28 AM 7/8/03 -0700, Spencer Graves wrote: Did you work through the examples at the end of the nlm documentation? The first example there shows that nlm expects a single vector argument over which f is to be minimized. This suggests that your first construction

Re: [R] solving multiple parameter starting values in nlm

2003-07-08 Thread Spencer Graves
1. With a problem like that, I will typically try to step through my function one line at a time until I find the line that produces the warning, the number of items to replace is not a multiple of replacement length. At that point, it is typically fairly easy to figure out how to fix the

[R] Virus found in a message you sent

2003-07-08 Thread Symantec_AntiVirus_for_SMTP_Gateways
A virus was found in a message sent by this account. --- Scan information follows --- Result: Virus Detected File Attachment: your_details.zip/details.pif Attachment Status: deleted --- Original message information follows --- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue, 8 Jul 2003

Re: [R] readline and R installation

2003-07-08 Thread Jean Eid
I have read and added the options in the config.site file. Although I get the following message R is now configured for sparc-sun-solaris2.8 Source directory: . Installation directory:/usr/local C compiler:gcc -g -O2 C++ compiler:

RE: [R] beginner gls (nlme) question

2003-07-08 Thread Simon Blomberg
Hi, Well since I have gotten no responses to my question, I managed to figure it out for myself (I think.). Here is the answer, for the purposes of the archive: Firstly, I was wrong in that it is not the factors that are correlated, but the observations (D'oh!). Therefore, the correlation

[R] Programming tip: Operators +., .+

2003-07-08 Thread Ted Harding
Since I have devised the following, they may be thought useful for that secret crock of gold at the end of the rainbow (WHERE is it??) full of people's programming tips. %+.%-function(X,x){sweep(X,1,x,+)} %.+%-function(X,x){sweep(X,2,x,+)} X %+.% x adds a vector x to each of the columns

RE: [R] NLME Fitted Values

2003-07-08 Thread Harold Doran
I would like to be able to add the random effect for the slope to the fitted value for the slope at each level (i.e, for each school and for each student). The fitted values at the population level should be the fixed effects (B_00 and B_01). So each school should have the same fitted values,