[R] question about technieque do with large computation

2005-10-23 Thread ronggui
The green book tells:The basic technique is classic :keep it simple .A long ,complicated expression or function is less fravorable than a relatively small computations that combines calls to a few other functions to perform its tasks. But I don't get the point totally.Can anyone give me an

[R] Probelms installing package RMySQL (Dominic Senn)

2005-10-23 Thread Dominic Senn
Hi I have R 2.2.0 and SUSE 10.0 installed. When I try to install the package RMySQL I get the error that the library libz could not be found. This is strange because I find the library libz.so.1 in the directory /usr/lib/. Can anybody help? Thanks a lot in advance, Dominic [[alternative

Re: [R] Probelms installing package RMySQL (Dominic Senn)

2005-10-23 Thread Prof Brian Ripley
On Sun, 23 Oct 2005, Dominic Senn wrote: Hi I have R 2.2.0 and SUSE 10.0 installed. When I try to install the package RMySQL I get the error that the library libz could not be found. This is strange because I find the library libz.so.1 in the directory /usr/lib/. Can anybody help? Thanks a

[R] brewing stats

2005-10-23 Thread paul sorenson (sosman)
I guess this isn't so much of a help request as a show-and-tell from a non-statistician homebrewer who has been fumbling around with R. If nothing else it provides yet another data set. I hope it is not out of line. Anyway, the plots I have produced are at

[R] Fwd: WG: Probelms installing package RMySQL (Dominic Senn)

2005-10-23 Thread Dominic Senn
Thanks for your speedy reply! Now it worked fine. After installing via Yast the package mysql-devel there was the library libz.so and afterwards I could install RMySQL without errors. -Ursprüngliche Nachricht- Von: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Gesendet: Sunday, October

[R] Weighted Least Squares mit glm

2005-10-23 Thread v . schlecht
Hallo all, I have a question concerning the weights used in the glm function. I need to build a linear model (family=gaussian) with only one regressor. Sadly I have only 6 different sets: y_i=alpha+beta*x_i , i=1,2,3,4,5. i=1,2,3,4,5 has been observed 60 times, while i=6 has only been

Re: [R] Design of experiments: construction and calculation

2005-10-23 Thread Kjetil Holuerson
Bart Joosen wrote: Hi All, after searching a while on the R-project help archives, I found that I can construct factorial design with the conf.design package. Have a look at CRAN package AlgDesign Kjetil But now, how can I construct a design for 2 parameters at 3 levels and 1

Re: [R] peculiar matrices

2005-10-23 Thread Ben Bolker
thanks all; this makes sense now. For what it's worth, this came up in the context of mapply(...,SIMPLIFY=TRUE), which returned a matrix as requested, but an odd-looking one. cheers Ben Bolker __ R-help@stat.math.ethz.ch mailing list

[R] dyn.load a f90 module.

2005-10-23 Thread Bo Peng
Dear list, Has there been any success in loading modules written in f90? I tried % ifort -c myfile.f90 % R CMD SHLIB myfile.o % R dyn.load('myfile.so') .Fortran('myfile') I used intel (free) fortran compiler under linux. All commands run successfully except that function myfile is not loaded.

Re: [R] dyn.load a f90 module.

2005-10-23 Thread paul sorenson (sosman)
Bo Peng wrote: Dear list, Has there been any success in loading modules written in f90? I tried % ifort -c myfile.f90 % R CMD SHLIB myfile.o % R dyn.load('myfile.so') .Fortran('myfile') I used intel (free) fortran compiler under linux. All commands run successfully except that

Re: [R] dyn.load a f90 module.

2005-10-23 Thread Bo Peng
If there are symbols present then unix 'nm' should show them to you. Interestingly: % nm myfile.so 0004fc T myfile_ % R dyn.load('myfile.so') is.loaded('myfile_') [1] TRUE ..Fortran('myfile_') Error in .Fortran('myfile_'): 'Fortran function name not in load table. So, myfile_ is

Re: [R] dyn.load a f90 module.

2005-10-23 Thread Duncan Murdoch
Bo Peng wrote: If there are symbols present then unix 'nm' should show them to you. Interestingly: % nm myfile.so 0004fc T myfile_ % R dyn.load('myfile.so') is.loaded('myfile_') [1] TRUE ..Fortran('myfile_') Error in .Fortran('myfile_'): 'Fortran function name not in

Re: [R] Probelms installing package RMySQL (Dominic Senn)

2005-10-23 Thread Jeff Ryan
Make sure you have your environment variable LDFLAGS set to -L/usr/ lib, otherwise I believe the linker doesn't look there. You can check where R looks in the Makeconf file, under LDFLAGS. Not too sure though - just slogged through building on a brand new Solaris box, and that was my problem.

Re: [R] adding error bars to lattice plots

2005-10-23 Thread Mario Aigner-Torres
On 10/21/05, Mario Aigner-Torres [EMAIL PROTECTED] wrote: Hi Deepayan, my error bars are delta; they should be transformed as Di - Disigma, Di+Disigma, being let's say lower and upper, respectively. To that both my y (Di) as the error bars should be in log10. One potential problem is

[R] GAM and AIC: How can I do??? please

2005-10-23 Thread Eun A Kim
Hello, I'm a Korean researcher who have been started to learn the R package. I want to make gam model and AIC value of the model to compare several models. I did the GAM model, but there were error for AIC. SO, how can I do? pleas help me!!! I did like below;

Re: [R] GAM and AIC: How can I do??? please

2005-10-23 Thread ronggui
=== 2005-10-24 09:55:32 您在来信中写道:=== Hello, I'm a Korean researcher who have been started to learn the R package. I want to make gam model and AIC value of the model to compare several models. I did the GAM model, but there were error for AIC. SO, how can

[R] confine the value

2005-10-23 Thread Chun-Ying Lee
Dear R users: I wonder if it is possible to confine the value which optim optimized to be all positive. I use optim with method Nelder-Mead. Please give me some comments. Thanks in advance!! __ R-help@stat.math.ethz.ch mailing list

Re: [R] confine the value

2005-10-23 Thread Gabor Grothendieck
If x is the variable being optimized replace it with x = z^2 and optimize over z. That will constraint x to be nonnegative. On 10/23/05, Chun-Ying Lee [EMAIL PROTECTED] wrote: Dear R users: I wonder if it is possible to confine the value which optim optimized to be all positive. I use optim

[R] In da.norm Error: NA/NaN/Inf in foreign function call (arg 2)

2005-10-23 Thread mlz2+
I am conducting a simulation study generating multivariate normal data, deleting observations to create a data set with missing values and then using multiple imputation via da.norm in Schafer's norm package. From da.norm, I get the following error message: Error: NA/NaN/Inf in foreign function

[R] Lowess Normalization Parameter Question

2005-10-23 Thread 김대현
Dear R Project Member I'm sending this email for asking something about the analysis of normalization using sma package in R. While there are F for smoothing parameter and delta for Robust weight function and iteration for repeated number in lowess Normalization, I'm just wondering if