[R] Functions for autoregressive Regressionmodels (Mix between times series and Regression Models) ?

2007-08-07 Thread Maja Schröter
Hello everybody, I've a question about autoregressive Regressionmodels. Let Y[1],.,Y[n], be a time series. Given the model: Y[t] = phi[1]*Y[t-1] + phi[2]*Y[t-1] + ... + phi[p]*Y[t-p] + x_t^T*beta + u_t, where x_t=(x[1t],x[2t],x[mt]) and beta=(beta[1],...,beta[m]) and u_t~(0,1) I

[R] Problems using lm in combination with predict

2007-08-04 Thread Maja Schröter
Hello everybody, I'm trying to predict a linear regression model but it does not work. My Model: y = Worktime + Vacation + Illnes + Bankholidays My modelmatrix is of dimension 28x4 Then I want to make use of the function predict because there confidence.intervals are include. My idea was:

Re: [R] Problems using lm in combination with predict

2007-08-04 Thread Maja Schröter
PROTECTED] An: Maja \\Schröter\\ [EMAIL PROTECTED], r-help@stat.math.ethz.ch Betreff: Re: [R] Problems using lm in combination with predict I think you need predict(mod,newdate) instead of predict(y,newdate) --- Maja Schröter [EMAIL PROTECTED] wrote: Hello everybody, I'm

[R] Text with differents colors in a plot / Detecting if text exists

2007-07-15 Thread Maja Schröter
Hi everybody, I want to write some text in a plot. That's simple I know. But I want to make use of different colors. Eg. text(x,y,paste(Sunderland,high)). Then Sunderland should be black and high red. Has anyone an idea? By the way. I'm looking for a function or something similar, that can

[R] How to start a R script from a dos command?

2007-07-01 Thread Maja Schröter
Hi everybody, I want to start a R programm from a dos command. Are there any possibilities that I can start e.g. the file Test.R from dos? Maybe something like: R.exe -Test.R ? Thank you very much! Regards, Maja -- __ R-help@stat.math.ethz.ch

[R] [r

2007-06-23 Thread Maja Schröter
-- __ 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 and provide commented, minimal, self-contained, reproducible code.

[R] Encircling a text in a plot

2007-06-23 Thread Maja Schröter
Hello everyone, I want to write something in a plot with text or something similar, e.g. text(x,y,something) but I want to encircle it by a box as in a legend. I have absolutely no idea how this could work. Thank you very much for your answers! Maja --

[R] Highliting a text in a plot

2007-06-23 Thread Maja Schröter
Hi everyone, I want to highlight something in a plot. So I want to write a text with a yellow background. I tried to make use of text(x,y,hallo,bg=yellow) but that does not work. I know I am a handful. Sorry! Maja! -- __ R-help@stat.math.ethz.ch

[R] Problems with Vista, R 2.5.0 and function save

2007-06-12 Thread Maja Schröter
) Pollution-c(34,32,50,17) masterfile-data.frame(Town,Pollution) save(masterfile,file=masterfile.Rda) Kindly regards, Maja Schröter -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger __ R-help

[R] Starting R within an VBA makro

2007-06-11 Thread Maja Schröter
Hello everybody, at work I want to start R within an VBA program. First I calculate something in Excel 2003. After that I want to start within my VBA makro R wich should start an R file, say i.g, superplot.R which plots me the data well. So is it possible? Maybe something like that: sub

[R] German Map in package maps

2007-05-22 Thread Maja Schröter
Hello everybody, I'm an absolute newbe in R, so please be gentle to me. I am looking for a german map in the package maps by Becker and Wilks. After that I want to draw the German cities from world.cities of this package in the map and want to draw further a line from Berlin to Munich. Has

[R] How to increase decimal places

2006-11-12 Thread Maja Schröter
Hello everyone, does anybody know how to increase the decimal places that R uses to calculate something. I think that in default R uses 6 decimal places but I need 12. Thank you very much! Best regards, Maja! -- __ R-help@stat.math.ethz.ch mailing

[R] Dividing objects in classes using function sample()

2006-09-02 Thread Maja Schröter
Hello everyone, I've a problem and dont know how to solve. This is my first posting and it would be fantastic if you could help me. I want to divide n objects in k classes and need an output with all (n+1)(n+2)/2 possibilities. For example n=4, k=3: That would be: 4 0 0 3 1 0 3