[R] stepwise with F statistics

2009-10-13 Thread Lucas Sevilla García
Hi Community R I need to make a stepwise using F statistics as a criteria to choose variables.I have 3 independant variables and one dependant variable, and I need to choose the best model fitting to my data using F statistics. The problem is I haven't found any package to do such operation.

[R] Interpolation

2009-10-06 Thread Lucas Sevilla García
Hi R community I need to interpolate precipitation data for a natural park. I have precipitation data from some climate stationts. (I know the table is not complete but I only need to show you X,Y, Altitude and PrepJul) X Y Altitude PrepJan PrepFeb PrepMar PrepAp PrepMay

[R] Read header csv file

2009-09-30 Thread Lucas Sevilla García
Hi R community, First of all, I want to thank everybody to share their time solving R questions, You are great. Ok, for my questions, I've been looking for a solutions by myself, in forums but I'm just a little bit desesperate so I hope somebody can help me. I have built a code to read files

[R] Check value interval in a if loop

2009-09-27 Thread Lucas Sevilla García
Hi R community I have a little problem, and I tried to solve it by myself but I couldn't. I building an if loop, and I want to check a value inside an interval. This would be the case: pvalue=0,2999 if(pvalue0.05 or pvalue0.1) as you can see I would like to check in that if loop if my

[R] P-value and R-squared variable selection criteria

2009-09-24 Thread Lucas Sevilla García
Hi R community I have a question. I'll explain my situation. I have to build a climate model to obtain monthly and annual temperature from 2004 to 2008 from a specif area in Almeria (Spain). To build this climate model, I will use Multiple regression. My dependant variable will be monthly and

[R] Variable as a filename

2009-09-23 Thread Lucas Sevilla García
Hi R community, I have a question. I have 5 files in a directory. Each file has a year as a name (file 1 -2004, file 2- 2005, ...). I want to build a for loop where I call first file, do some calculations, go to second file, do some calculations, etc. Somethin like this: year-2003 nfiles -

[R] Save data in txt

2009-09-12 Thread Lucas Sevilla García
Hi everyone I have a little problem with R. I built a lineal regression equation using stepAIC function in both directions. Once I get this formula (lineal regression), I would like to save in a txt file data refered to p-value, r-squared, coefficients,...from the choosen model previously

[R] Import/export ENVI files

2009-08-24 Thread Lucas Sevilla García
Hi! I'm a beginner with this webpage so, I don't know if I'm sending my question to the correct site. Anyway, I'm working with R and I need to import and export ENVI files, (*.HDR files). A colleague told me that there is a package to import/export envi files but I haven't found that package,