Displaying 20 results from an estimated 2000 matches similar to: "Performing regression using R & C"
2004 Aug 30
3
Multiple lapply get-around
I am faced with a situation wherein I have to use multiple lapply's. The
pseudo-code could be approximated to something as below:
For each X from i=1 to n
For each Y based on j=1 to m
For each F from 1 to f
Do some calculation based on Fij
Store Xi,Yj = Fij
End For F
End for Y
End for X
Is there anyway to optimize the processing logic further? I *guess*
using the multiple lapply
2004 Apr 20
2
Rank - Descending order
Dear All,
Is there any simple way to way to produce "rank", for a given
list, but in a descending order?
E.G:
x = list(a=c(1,5,2,4));
rank(x$a); produces 1,4,2,3
However I am looking for a way to generate (4,1,3,2).
It would be particularly nice if the proposed solution has all
the niceties of rank function (like NA handling and ties.method
functionality)
TIA
Manoj
2003 Oct 20
4
Processing logic for Huge Data set
Hello All,
I am new to R. I am trying to process this huge data set of
matrix containing four columns, say x1, x2, x3, x4 and n number of rows.
I want to aggregate the matrix by x1 and perform statistic based on
columns x2, x3, x4. I tried aggregate function but it gave me memory
allocation error (which I am not surprised), so I ended up performing a
for loop based on x1 and
2004 Jun 09
1
Multiple regression
Hi,
I am trying to do multiple regression on a set of data using backward stepwise regression....however backward stepwise regression is critised for overfitting data. To actually observe the bias and to come up with a better method to use..Could you all stats experts kindly give me pointers to any alternative procedure (or references) to use over backward stepwise regression from your
2004 Jun 14
2
CVnn2 + nnet question
Hi,
I am trying to determine the number of units in the hidden layer
and the decay rate using the CVnn2 script found in MASS directory
(reference: pg 348,MASS-4).
The model that I am using is in the form of Y ~ X1 + X2 + X3...
+ X11 and the underlying data is time-series in nature.
I found the MASS and nnet package extremely useful (many thanks
to the contributors).
However I am getting
2003 Dec 16
1
Calling C function in R
Hi All,
I am trying to write a c function to optimize loop processing.
Having read the R extension and trying out a few samples I was pretty
comfortable with the basics.
However, I am wondering if there is anyway to call tseries
functions like adf.test or po.test from within c function. Any pointers/
code sample would be greatly appreciated.
Thank you.
Manoj
2004 Aug 27
1
Keyboard input into functions
?readline
HTH
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Neil Leonard
Sent: Friday, August 27, 2004 2:04 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Keyboard input into functions
Hi,
Does anybody know if it is possible to have keyboard input into
functions? Kind of like 'scanf()' in C.
I want to
2017 Sep 13
0
(no subject)
On 13/09/2017 5:23 AM, Brayford, David wrote:
> When I try to install gsl in R I get the error Need GSL version >= 1.12 . However, I have version 2.3 of gsl installed on the system, which is picked up earlier in the configure process (see below). Is it possible for someone to fix this error in the configure script?
>
> checking for gsl-config...
2017 Sep 13
4
(no subject)
When I try to install gsl in R I get the error Need GSL version >= 1.12 . However, I have version 2.3 of gsl installed on the system, which is picked up earlier in the configure process (see below). Is it possible for someone to fix this error in the configure script?
checking for gsl-config... /lrz/sys/libraries/gsl/2.3/bin/gsl-config
checking if GSL version >= 1.12... checking for gcc...
2005 Dec 25
4
Portability and Memory Issues for R-package
I have an upcoming JASA paper with an iid sampling algorithm for Bayesian Generalized Linear models (e.g., Logit, Poisson Regression, and Conditional Logit models with multivariate normal priors). At this point, I have implemented the algorithms in C and hope to make the functions and corresponding source code available through an R package. I have successfully created the code necessary to
2017 Sep 13
0
(no subject)
On 13/09/2017 9:10 AM, David Brayford wrote:
> Hi Duncan,
>
> The output of gsl-config --version
> 2.3
>
> The output of gsl-config --cflags
> -I/lrz/sys/libraries/gsl/2.3/include
>
> The output of gsl-config --libs
> -L/lrz/sys/libraries/gsl/2.3/lib -lgsl -lgslcblas -lm
>
> gsl_version.h cat output
> #define GSL_VERSION "2.3"
> #define
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
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
2010 Apr 16
3
GSL in C code for R
Dear fellow R users,
I am now investing time in learning how to use compiled C code to produces functions that can be used in R. I am just starting, and there is much that I need to learn, so I have a question that might be straight forward. I am learning how to use function in the C library GSL (gnu scientific library), to write C code, that I then plant to use in R. Is there any problem in
2012 Aug 17
2
R package compilation: files in src directory should be ignored if C library is not available
I have written an R package which contains C source code (in the directory pkg/src).
Only a subset of the functions in the pkg/R directory contain a .C() call to the functions in the pkg/src directory. The rest of the package will still work and be useful without the functions containing a .C() call.
To compile the code in pkg/src requires the GSL library. This is detailed in the
2016 Nov 01
2
libgsl.so.0
On 01/11/16 21:08, Kirill M?ller wrote:
> Did you reinstall the gsl package [1]?
Apparently not. I did a complete update.packages() which reinstalled a
great number of packages (I have a great number in my personal library).
There were complaints about 4 packages, one of which was "copula", but
"gsl" was not one of them.
I would have *thought* that if "gsl"
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
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
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