[R] call R scripts from python

2004-09-28 Thread Fulvio Copex
Hello, I have just learnt some python, and would like to call R scripts from python, without using batch mode. I learnt how to do it from perl, in fact reading in the mail archive I found the following good example: *** #!/usr/local/bin/perl open (FILE,

[R] getting the std errors in the lm function

2004-03-08 Thread Fulvio Copex
Hello, I have a simple question for you: making: mylm-lm(y~x) summary(mylm) I get the following results: ** Coefficients: Estimate Std. Error t value Pr(|t|) (Intercept) 16.540870.19952 82.91 2e-16 *** x[1:19] -2.32337

[R] plot(x,y) with errors

2004-03-03 Thread Fulvio Copex
Dear all, I have 2 variables, x-c(1,2,3,4,5,6,7,8,9,10) y-c(1.3,2.5,4.6,5.3,5.9,6.7,7.4,8.5,9.4,10.4) each point of the y variable has an error: erry-(0.2,0.3,0.2,0.1,0.4,0.2,0.3,0.4,0.3,0.2) how to plot(x,y) with the errors segments? Thank you, Copex -

Re: [R] plot(x,y) with errors

2004-03-03 Thread Fulvio Copex
thank you very much, all the solutions work. Regards, Copex Peter Dalgaard [EMAIL PROTECTED] wrote: Spencer Graves writes: Does the following do what you want: x-c(1,2,3,4,5,6,7,8,9,10) y-c(1.3,2.5,4.6,5.3,5.9,6.7,7.4,8.5,9.4,10.4) erry-c(0.2,0.3,0.2,0.1,0.4,0.2,0.3,0.4,0.3,0.2)

[R] Basic general statistical problem.

2004-02-28 Thread Fulvio Copex
Hello everyone, I'd like to have suggestions about a common basic statistical approach, hope to be useful also for other R beginners. When you first get some data (i.e length of river) you may want to look at its distribution. Then you probably want to find which law follows this distribution,

[R] deleting elements from an array/object

2004-02-23 Thread Fulvio Copex
Hello, I created a simple histogram with: myHist-hist(myData) the object myHist now has two arrays (among the others): myHist$mids myHist$counts Since myHist$counts contains some 0, and I want to calculate the linear fit among myHist$mids and log(myHist$counts), I want remove the elements of

[R] saving variables created by functions in the workspace

2004-02-21 Thread Fulvio Copex
Hello , just a simple question from a beginner: I write the function: plotsinx - function() { x-seq(0,2*pi,0.01) sinx-sin(x) plot(sinx) } I recall it: plotsinx() and the plot works properly. but then in the workspace if I want to look at the values of sinx the following error is displayed:

[R] RE:Including R plots in a Microsoft Word document

2004-02-21 Thread Fulvio Copex
Sorry Gabor, in which package can I found the function: win.metafile() ? __ http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/ __ [EMAIL PROTECTED] mailing list

[R] RE:Including R plots in a Microsoft Word document

2004-02-21 Thread Fulvio Copex
Sorry Gabor, in which package can I found the function: win.metafile() ? __ http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/ __ [EMAIL PROTECTED] mailing list

[R] linear regression and chi square test of data with standard deviation

2004-02-15 Thread Fulvio Copex
Hello everyone, I know that to calculate the linear regression between x and y, I have to use the function lm. But how to do if x and y have a standard deviation like in the following example? How to compute the chi square test? Thank you, E. example: x äx 5 2 13 4 17 4 23 6 y äy 6.3

[R] linear regression of data with standard deviation

2004-02-15 Thread Fulvio Copex
Hello everyone, I know that to calculate the linear regression between x and y I have to use the function lm. But how to do if x and y have a standard deviation like in the following example? How to compute the chi square test in this case? Thank you, Fulvio. example: x +- dx 5 2 13