similar to: GSL in C code for R

Displaying 20 results from an estimated 1000 matches similar to: "GSL in C code for R"

2008 Nov 03
2
Calculating R2 for a unit slope regression
Does anyone know of a literature reference, or a piece of code that can help me calculate the amount of variation explained (R2 value), in a regression constrained to have a slope of 1 and an intercept of 0? Thanks! Sebastian J. Sebastián Tello Department of Biological Sciences 285 Life Sciences Building Louisiana State University Baton Rouge, LA, 70803 (225) 578-4284 (office and lab.)
2008 Jun 24
1
transform a table into a matrix
Hi. is there a way to transform a table that has numeric and categorical variables into a matrix? thanks Maria Mercedes Gavilanez Department of Biological Sciences 107 Life Sciences Building Louisiana State University Baton Rouge, LA 70803 (225)578-4284
2012 Jul 24
1
Trouble with Installing R Package gsl
Dear R users: I have a problem when installing the R package *gsl*. The procedure is as follows: (1) Since it needs a GSL vesion >=1.12, and the GSL library on the serve I use is too old, I download GSL 1.15 and install it in my own account, such as $HOME/local/gsl. Because I do not have root access, so it cannot be installed in standard folder. (2) Then I download the source code of R
2010 Oct 30
1
Trouble installing gsl wrapper
Hi, I'm trying to install the gsl wrapper source code (http://cran.r-project.org/src/contrib/gsl_1.9-8.tar.gz) on a Linux system (OpenSuse 11.1), but encountering the following problem. I've already installed 'gsl' version 1.14 (ftp://ftp.gnu.org/gnu/gsl/gsl-1.14.tar.gz) on the system. What's missing? Thanks a lot... > R CMD INSTALL gsl * installing to library
2009 Jan 06
1
Installation of R package gsl and its corresponding GSL library
Hi I want to install the R package gsl, which is a wrapper to the library GSL. Installation fails as it seems that I did not install the right GSL library: * Installing *source* package 'gsl' ... checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of
2014 Oct 01
1
gsl package on mavericks
hello I maintain the gsl R package, and many users have recently reported that the package does not install from source under macosx 10.9 ("mavericks"). Users typically install the gnu GSL library and are able to compile and run a small "hello world" program which executes some of the Bessel functionality of the library; but under mavericks the configure script (which uses
2010 Feb 28
1
Problem with gsl package
Hi all, I am new to R and am writing after having contacted Robin Hankin, who maintains the R gsl wrapper. I am trying to use an AFNI (neuroimaging analysis) program that depends on the R gsl package. When I try to use the script I wrote, I get an error that led me to suspect the gsl package was a culprit. When I do library("gsl") within R, I get: Error in dyn.load(file, DLLpath
2007 Nov 22
1
package gsl assumes incorrect gcc version during install (PR#10451)
Full_Name: Levi Waldron Version: 2.5.1 OS: Ubuntu Gutsy Submission from: (NULL) (206.248.157.88) I installed libgsl0-dev then tried to install the gsl cran package, unsuccessfully (see output below). As a workaround I created a symbolic link to /usr/bin/gcc-4.2, ie: sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc-4.2 The correct behavior of the gsl package should be to use the executable
2007 Oct 03
1
error installing gsl pkg
Newbie here (to R) and running Linux... > install.packages("gsl","~/R") ... trying URL 'http://cran.wustl.edu/src/contrib/gsl_1.8-4.tar.gz' Content type 'application/x-tar' length 57051 bytes opened URL ================================================== downloaded 55Kb * Installing *source* package 'gsl' ... checking for gcc... gcc checking for C
2006 Jun 23
3
problem installing gsl package under Ubuntu Breezy Badger
I am trying to install the gls package (a wrapper for GNU scientific library special functions) package under Ubuntu 5.10. I have gls-bin (the debian GNU Scientific Library binary package). When I try to install the R package, I receive the following. > install.packages("gsl",dependencies=T) Warning in install.packages("gsl", dependencies = T) : argument
2011 Jun 19
4
For loop by factor.
I have a data.frame as follows: a 3 a 2 a 1 b 3 b 2 c 2 c 3 c 1 c 1 Each factor (a, b, c) should be monotonically decreasing, notice that factor 'c' is not. I could use some help to figure out how to form a logical structure (mostly just syntax), that will check each 'next value' for each factor to see if it is less than the previous value. If it is less than the
2009 Nov 20
1
how to link C code with gsl from R CMD and dyn.load
Hi, I am writing a function in C that is meant to be called by R. In the C function, I used a gsl function gsl_stats_mean. The code is as simple as below void gsl(double *m, int *dim){ int r, c; r = dim[0]; c = dim[1]; double mean = gsl_stats_mean(&m[0], 1, r); Rprintf("mean = %f\n", mean); } The C code is succesfully compiled and the output is as follows. $ R CMD SHLIB
2010 Feb 28
1
"Types" of missingness
Dear R-List, My questions concerns missing values. Specifically, is is possible to use different "types" of missingness in a dataset and not a one-size-fits-all NA? For example, data may be missing because of an outright refusal by a respondent to answer a question, or because she didn't know an answer, or because the item simply did not apply. In later analysis it is sometimes
2007 Sep 16
1
Using gsl libraries in R packages
I have some compiled C code that I call from R, and I would like to distribute this code as an R package through CRAN. In the C code, I use the gsl numerical libraries, mainly for the BLAS interface, some linear algebra functions, and some optimization routines. As I prepare this code to conform to the specs for R packagtes, I am wondering if there is a restriction on the use of external
2011 Apr 14
1
Using GSL Routines
Dear R-programmers, I am trying out certain methods in R, and the statistics require me to calculate n-(sample size) dimensional equations. They are not really very hard to solve - my home-brew implentation of Newton-Raphson in R succeeds most of time with simulated data. (Note that I am assured of a unique solution by theory). Problem comes in with real data, for which I should really implement
2004 Sep 09
1
Adding GSL library path to SHLIB
Dear R-list people, I asked a similar question a few hours before. I will try to be more specific. We like to add the GSL library to the file SHLIB in order to make it possible to run the C code using GSL functions from R. We read that the path to the libgsl.a should be added to the line shlib_libadd=' ' in the file SHLIB but it does not work on our system. Dyn.load fails with error
2004 Sep 09
3
Dyn.load of sharing object with GSL library
Following the recommendation of Prof. Ripley, I have created the Makevars file with the line: PKG_LIBS="-L/usr/lib/libm -lm -L/usr/local/lib/libgsl -lgsl -L/usr/local/lib /libgslcblas -lgslcblas" in the working directory. Now I have the code file Example3.c which computes the Bessel function value (the example is taken from the GSL reference book). I am running: R CMD SHLIB Example3.c
2008 Jan 04
1
GSL version >= 1.8 CentOS 4.x ?
Hi! Is there a version of gsl library >= 1.8 available for centos 4.x? If indeed there is none (as i founded nothing so far) has someone some idea how should i make the rpm from src.rpm ? Thank you, Best regards, Adrian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3092 bytes Desc: S/MIME Cryptographic
2013 Jun 09
1
Dyn.load of sharing object with GSL library
Dear R-list, I want to use shared library of gsl in R(2.15.1) on unix .I have a makefile such as CC = gcc CFLAGS = -fPIC -O2 PKG_LIBS -lgsl -lgslcblas -lm -lpthread ? OBJS_SPB = calc_spb.o k.o dk.o ddk.o ? ? calc_spb.so : $(OBJS_SPB) ? ????? $(CC) -shared -o calc_spb.so $(LIBS) $(OBJS_SPB) ? clean : ????? rm -f ../*.o *.o ? clean.so: ????? rm -f *.so ? I use R CMD SHLIB calc_spb.c in terminal
2010 Jul 08
0
Psudeo R^2 (or other effect size) in spatial gls regressions
Dear all, I have been using the function gls in the package nlme in R to fit some spatial regressions (as described in Dormann et al.). However, I have been struggling trying to find a way to calculate a measure of effect size from these models, so I wanted to know if any of you had an idea on how to do this. More precisely, I am producing a multiple model with an exponential correlation