Displaying 20 results from an estimated 2000 matches similar to: "Problem with leaps (long)"
2002 Jan 28
4
Multivariate response trees
I would like to know if someone has done work on trees with
multivariate response. I need something like rpart but for vector
responses. If someone has code that he/she is willing to share, I
would be grateful. If not, even guidelines for writing my own starting
from rpart would be welcomed.
ft.
--
Fernando TUSELL e-mail:
Departamento de
2002 Feb 01
1
Sampling from a database
I use RODBC and RpgSQL quite a lot to access files stored in another
machine under PostgreSQL. Since I am now using files which do not fit
into R's memory, I would like to take random samples. What I would
like is to issue a query such as
SELECT * FROM file WHERE runif > 0.9
with "runif" being a uniformly distributed random number, generated on
the fly; but I cannot
2000 Jun 20
5
Compiling R on an Alpha
Sorry to be such a nuisance but after asking for help with compiling
R-1.1.0 on an Intel-based machine I now have another problem on the
Alpha DS-10 server which my students use.
Compilation and instalation proceed perfectly, but when I invoke R I
get:
[etdx01:bin]$ ./R
Fatal error: The X11 shared library could not be loaded.
The error was /home/etptupaf/R/lib/R/bin/R_X11.so: undefined
2001 Oct 04
3
Ordered factors and DBMS
Is there any way of preserving order of ordered factors when storing a
table in PostgreSQL?
I have been using PostgreSQL and the RPgSQL package to store a large
table with answers such as "Strong disagreement", "Strong agreement",
"Mild disagreement". "Mild agreement". When reading the table, such
answers are turned into factors, apparently in
2000 Jun 19
1
Problem compiling R-1.1.0
I just downloaded R-1.1.0.tgz and attempted installation as usual with
./configure
./make
Everything run fine until I hit the following error:
gcc -I. -I../../../src/include -I../../../src/include -I../../../src/include/R_ext -I/usr/X11R6/include -I/usr/local/include -DHAVE_CONFIG_H -mieee-fp -D__NO_MATH_INLINES -fPIC -g -O2 -c rbitmap.c -o rbitmap.o
rbitmap.c:239: parse error
2000 Mar 30
1
slice.index
Porting a package from S-Plus to R I find missing the S-Plus function
slice.index().
Before I hack a (probably ugly an inefficient) replacement, has anyone
done so?
Is there a similar function in R that I have overlooked?
Many thanks,
ft.
--
Fernando TUSELL e-mail:
Departamento de Econometr?a y Estad?stica etptupaf at bs.ehu.es
Facultad de CC.EE.
2000 Dec 19
1
update.packages()
I have recently upgraded to R-1.2 and update.packages() gives the
following error on my system. Am I doing something wrong?
ft.
--
Fernando TUSELL e-mail:
Departamento de Econometr?a y Estad?stica etptupaf at bs.ehu.es
Facultad de CC.EE. y Empresariales Tel: (+34)94.601.3733
Avenida Lendakari Aguirre, 83 Fax:
2000 Apr 28
2
Dumping functions to RCS
To keep track of an ongoing programming project, I would like to dump
all my functions to individual ASCII files named xxx.R, yyy.R, etc.
Presently I do so manually in order to use RCS (on a Linux machine),
so I can keep track of all versions, differences, snapshots, etc.
Is there any easy way to dump all functions in the workspace to
individually named files? Thank you very much for
1999 Dec 23
1
rpart on Alpha under OSF
Running on an Alpha machine which reports (uname -a)
OSF1 bsdx01.bs.ehu.es V4.0 878 alpha
and using the binary distribution put together by Albrecht Gebhardt
(in http://cran.at.r-project.org/bin/osf/osf4.0/tar/alpha_ev5/) I
obtain core dumps whenever I try to use package rpart. I have R
REMOVE'd the rpart package, downloaded the source rpart_1.0-7.tar from
CRAN and
2004 Jun 10
1
Failure to compile on Itanium
I am trying to compile R on an Itanium machine running Red Hat 7.2 and
gcc version 2.96.
The build fails with the following symptoms:
g77 -fPIC -g -O2 -c cmplx.f -o cmplx.lo
g77 -fPIC -g -O2 -c cmplxblas.f -o cmplxblas.lo
gcc -shared -L/usr/local/lib -o libRlapack.so dlapack0.lo dlapack1.lo
dlapack2.lo dlapack3.lo cmplx.lo cmplxblas.lo -L/usr/local/lib
2005 Jan 18
1
"Attach" for S4 objects?
When passing a list as an argument to a function, I find it convenient
to attach it in the first line of th function code, then refer to the
components as A, B, etc. rather than as list$A, list$B, etc.
If I pass a S4 class object, is there a way to "attach" it, or do I have
to refer to the slots as object at A, objetc at B, etc.?
I could always make copies,
A <- object at A
2004 Mar 31
2
Failure to compile source packages in Debian
As of quite recently I experience failures to compile source packages.
Messages like
* Installing *source* package 'dse1' ...
** libs
g77 -mieee-fp -fPIC -g -O2 -c dsefor.f -o dsefor.o
gcc -shared -o dse1.so dsefor.o -L/usr/lib/gcc-lib/i486-linux/3.3.3
-L/usr/lib/gcc-lib/i486-linux/3.3.3/../../..
-lfrtbegin -lg2c-pic -lm -lgcc_s -L/usr/lib/R/bin -lR
/usr/bin/ld: no se puede
2007 Oct 03
0
leaps: regsubsets, formula including interactions
Hi R-list members,
Could somebody explain to me the meaning of the '.' in the formula
SumTL~. below? I could not find it in the help pages. I'm guessing it is
substituted by v1+v2+v3+.. for all independent variables vi.
Furthermore, I would like to add interaction effects to the model,
is this also possible with the '.'?
> library(leaps)
>
1998 Dec 17
0
Cannot read .rda data
Below the line is (slightly edited, to remove irrelevant stuff) the
transcript of a session in R. Seems that data is read in, but I cannot
print or use it.
I have looked inside the data directory of MASS, and see that the
format of the data is different than the one from other libraries I
have. It may be that this particular format is not read correctly, or
my setup may be faulty. I
2004 Nov 03
2
Princomp(), prcomp() and loadings()
In comparing the results of princomp and prcomp I find:
1. The reported standard deviations are similar but about 1% from
each other, which seems well above round-off error.
2. princomp returns what I understand are variances and cumulative
variances accounted for by each principal component which are
all equal. "SS loadings" is always 1.
3. Same happens
2001 Nov 10
0
Summary: Teaching with R a quick survey.
Hi
I would like to start by thanking everyone that replied. Thank you for the
information, and for the comments about how or why you use it and thankx for
the encouragement re my talk....
Please note that I do not claim to have ellicited a reply from all users of
R, this is a quick survey not a census.
I have tried to break the responces down to the following categories:
Where: (hopefully
1999 Oct 25
1
Summary: SQL-Interface
Some days ago I asked for general methods to access SQL-Databases.
Thanks to:
Terry Westley [twestley at buffalo.veridian.com], partha_bagchi at hgsi.com,
F.Tusell [etptupaf at bs.ehu.es], Michael Lapsley [mlapsley at ndirect.co.uk],
Robert Gentleman [rgentlem at jimmy.harvard.edu], Torsten Hothorn
[hothorn at statistik.uni-dortmund.de]
Several solutions were suggested:
(1) using Michael
2009 Feb 25
1
leaps question
Colleagues,
please help me with the simple question.
How can I find R2 and p while doing best subsets regression? Also how
can I see B and p for coefficients?
Maybe you can advice me detailed manual, because in manual for the
package this is not described.
Thank you
2005 Mar 02
1
Leaps & regsubsets
Hello
I am trying to use all subsets regression on a test dataset consisting
of 11 trails and 46 potential predictor variables.
I would like to use Mallow's Cp as a selection criterion.
The leaps function would provide the required output but does not work
with this many variables (see below).
The alternative function regsubsets should be used, but I am not able to
define the function in
2010 Jan 08
0
inclusion of "intercept=FALSE" in regsubsets() in leaps package produces an error
Hello,
I have encountered a problem which may be arising from details of my data and or the statistics I am trying to do, or may be arising due to the way leaps works internally. Unfortunately, I am not yet savvy enough to tell why.
I can say that this statement works (or at least works to the degree I expect):
b <- regsubsets(FUND~.,data=all, intercept=TRUE, nbest=1, nvmax=8, really.big=T,