Dear Francesca,
As Rolf already pointed out, please provide more comprehensible information.
As shot into the blue, excluding the NAs when calculating the mean might help:
> mean(c(3, 5, NA))
[1] NA
> mean(c(3, 5, NA), na.rm = TRUE)
[1] 4
Cheers,
Thomas
Von:
Dear Upananda,
I see a misplaced bracket in your code, and there is no need in aes() to call
the dataframe explicitly. Does this work?
ggplot(data = data_vol3, aes(x = index, y = usa)) +
geom_line()
Best wishes,
Thomas
Von: R-help im Auftrag von Upananda Pan
Can someone please help? The read.table command is not working for me I
think because Windows has my account name stored as "Christa Rose" with a
space in it. Is this a problem? I have tried many syntax iterations, and
cannot get around this.
Here is an example of the syntax
I had the following files in /:
root@caiman:/root(8)# ll /
total 160301
drwxr-xr-x 2 root root 4096 May 16 12:23 bin/
drwxr-xr-x 6 root root 3072 May 14 13:58 boot/
-rw-r--r-- 1 root root 38673 May 14 14:22 boot_local-d.log
lrwxrwxrwx 1 root root11 Jan 22 2011 data -
I have 8 predictors and 1144 observations over 13 years. I think it is not
the case.
--
View this message in context:
http://r.789695.n4.nabble.com/computationaly-singular-error-tp4675810p4675962.html
Sent from the R help mailing list archive at Nabble.com.
Thanks Bert,
all predictors are numerical. By the way, I have checked the collinearity of
predictors by vif(). All vif of predictors were less than 2 that means none
of the predictors are linear combinations of the others.
Best,
Rose
--
View this message in context:
http://r.789695.n4
Hi there,
I am trying to estimate the mlogit model. but I get the following error.
Error in solve.default(H, g[!fixed]) :
system is computationally singular: reciprocal condition number =
4.65795e-19
I have googled it and found out the collinearity between independent
variables cause this err
X1 + X2 +X3 + X4 + X5 + X6 + X7 + X8 + X9 + X10 + :
panel is only relevant for mixed logit models.
Now, I would like to know if the mlogit.dat is correct or not? Secondly, how
could I make correct the mlogit command.
Any help would be appreciated in advance.
Best,
Rose
--
View this mess
Good evening! This is Herbejie Rose
I need your help for me to compute the following:
I just want to ask on how to bootstrap a 11x10 matrix to obtain 1000
bootstrap samples and compute the 10 dimensional mean per bootstrap sample.
the 11x10 dimension of the matrix has 11 subjects and 10
update.packages(checkBuilt = TRUE) fails with:
> update.packages(checkBuilt = TRUE)
rpanel :
Version 1.0-6 installed in /usr/lib64/R/library built under R 2.15.0
Version 1.1-1 available at http://mirrors.softliste.de/cran
Update (y/N/c)? y
trying URL
'http://mirrors.softliste.de/cran/src/contr
Thanks Gabor!
This is exactly what I was searching for! --- And it works like a charm.
On Fri, Aug 17, 2012 at 1:03 PM, Gabor Grothendieck
wrote:
> On Thu, Aug 16, 2012 at 3:30 PM, Kenneth Rose wrote:
>> Hi R community
>>
>> I copied a bit of my R code that gets some data
7;, '2012-06-12 23:14', sql) )
>
>
>
> Or if mydates is a vector of dates stored as a POSIXt object:
>
> for (id in mydates) {
> dbGetQuery( con, gsub('ADATE', format(id), sql) )
> }
>
>
> -Don
>
> --
> Don MacQueen
>
> Lawrence Liv
Hi R community
I copied a bit of my R code that gets some data from a database. You
won't be able to run the code, but I am a beginner so you will
probably understand what going on.
I would like to make a variable I can refer to inside the sqlQuery.
Instead of writing the start date and time (ex
Am Mittwoch, den 28.03.2012, 14:08 +0200 schrieb Juergen Rose:
> I have the following script (also attached):
>
...
> Ausführung angehalten
>
> This behaviour I don't like at all. Why getopt does not distinguish
> beetween options starting with alt least one hyph
(opt$verbose ) ) { opt$verbose = 0 }
if ( is.na(opt$verbose ) ) { opt$verbose = 0 }
print(sprintf("%s: do something with %s!",self,infile))
If I run this script from the command line, I get the output:
rose@moose:/home_moose/rose/Txt/src/Test/R(24)$ ./getopt_test.R
[1] "/
Am Sonntag, den 03.07.2011, 18:19 +0200 schrieb r...@rz.uni-potsdam.de:
> Quoting r...@rz.uni-potsdam.de:
>
> > Quoting Juergen Rose :
> >
> >> Hi,
> >>
> >> I was just able to install the patched Rmpi on the second system with
> >> openmp
Quoting r...@rz.uni-potsdam.de:
Quoting Juergen Rose :
Hi,
I was just able to install the patched Rmpi on the second system with
openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard
CRAN package?
Regards Juergen
Now there is a new problem. Testing openmpi-1.5.3-r1 and
Quoting Juergen Rose :
Hi,
I was just able to install the patched Rmpi on the second system with
openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard
CRAN package?
Regards Juergen
Now there is a new problem. Testing openmpi-1.5.3-r1 and
Rmpi_0.5-9a.tar.gz with the attached
Hi,
I was just able to install the patched Rmpi on the second system with
openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard
CRAN package?
Regards Juergen
Am Freitag, den 17.06.2011, 13:28 +0200 schrieb Hugo Mildenberger:
> Juergen,
>
> > I try to install Rmpi as root with in
Hi Hugo,
I tried your patch. The first 'R CMD INSTALL --preclean
Rmpi_0.5-9a.tar.gz' failed with:
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
[inspironM12:22936] *** Process received signal ***
[inspironM12:22936] Signal: Segmentation
supported Fortran 90 compiler or Fortran 90
compilers unavailable! Stop!
ERROR: configuration failed for package ‘glmnet’
How can I get more information, what a problem has happened?
Otherwise I have no problem to compile a small Fortran 90 program:
root@orca:/home/rose/Txt/src/Test/Fortra
debug segfaults for yourself (see 'Writing R Extensions') or
> ask your vendor for support.
I still suffer from the same problem, but now with R version 2.12.2.
> On Mon, 21 Feb 2011, Juergen Rose wrote:
>
> > Am Montag, den 21.02.2011, 11:11 +0100 schrieb Juergen Rose:
Am Dienstag, den 07.06.2011, 11:40 +0200 schrieb Brown, Mathew:
> Hello,
>
> I'm running R on Linux (Ubantu) and I'm trying to run a script that will read
> and plot data on a linux server. I've looked around and haven't been able to
> figure out how to do this.
>
> I want to load several files
Hi,
if I try to install glmnet, the installation fails with:
> install.packages("glmnet",dependencies=TRUE)
trying URL
'http://mirrors.softliste.de/cran/src/contrib/glmnet_1.6.tar.gz'
Content type 'application/x-gzip' length 522657 bytes (510 Kb)
opened URL
===
Hi,
if I try to install rattle, R fails to install:
rpvm, rsprng, RBGL, pcalg, arulesViz, pkgDepTools, Rgraphviz .
rpvm depends on pvm, rsprng on sprng which is not installed and which
seems not so easy to install on my gentoo systems. ArulesViz depends on
Rgraphviz, RBGL and pcalg depends on
I try to install Rmpi as root with install.packages("Rmpi").
It fails with:
...
checking for x86_64-pc-linux-gnu-gcc -std=gnu99 option to accept ISO
C89... none needed
I am here /usr and it is OpenMPI
Trying to find mpi.h ...
Found in /usr/include
Trying to find libmpi.so or libmpich.a ...
Found l
Am Mittwoch, den 23.02.2011, 18:12 +0100 schrieb Juergen Rose:
> class.weights=Wts,
I have just seen, that me last code was not complete. I try it once
more:
> library(e1071)> data(Glass, package = "mlbench")
> index <- 1:nrow(Glass)
> testindex <- sample(index, tr
I called svm and predict three times with the same data and got three
differing predictions:
> library(e1071)
Lade nötiges Paket: class
> data(Glass, package = "mlbench")
> index <- 1:nrow(Glass)
> testindex <- sample(index, trunc(length(index)/5))
> testset <- Glass[testindex, ]
> trainset <- Gla
I expected, that I will get the same prediction, if I multiply the
weights for all classes with a constant factor, but I got different
results. Please look for the following code.
> library(e1071)
> data(Glass, package = "mlbench")
> index <- 1:nrow(Glass)
> testindex <- sample(index, trunc(lengt
Am Montag, den 21.02.2011, 11:25 +0100 schrieb Karl Ove Hufthammer:
> Juergen Rose wrote:
>
> >> eigen(D)
> >
> > *** caught segfault ***
> > address (nil), cause 'unknown'
> >
> > Traceback:
> > 1: .Call("La_rs", x, only.va
Am Montag, den 21.02.2011, 11:11 +0100 schrieb Juergen Rose:
> Hi,
>
> with small matrices eigen works as expected:
>
> > eigen(cbind(c(1,4),c(4,7)), only.values = TRUE)
> $values
> [1] 9 -1
>
> $vectors
> NULL
>
> > eigen(cbind(c(1,4),c(
Hi,
with small matrices eigen works as expected:
> eigen(cbind(c(1,4),c(4,7)), only.values = TRUE)
$values
[1] 9 -1
$vectors
NULL
> eigen(cbind(c(1,4),c(4,7)))
$values
[1] 9 -1
$vectors
[,1] [,2]
[1,] 0.4472136 -0.8944272
[2,] 0.8944272 0.4472136
> eigen(cbind(c(1,-1),c(1,-
Hi Peter,
Quoting Peter Ehlers :
On 2011-02-18 12:32, Juergen Rose wrote:
Am Freitag, den 18.02.2011, 11:53 -0800 schrieb Peter Ehlers:
On 2011-02-18 11:16, Juergen Rose wrote:
If do:
library("e1071")
example(svm)
I get:
svm> data(iris)
svm> attach(iris)
svm>
Am Freitag, den 18.02.2011, 21:42 +0100 schrieb Claudia Beleites:
> update.packages (checkBuilt = TRUE)
Dear Claudia,
I just tried update.packages (checkBuilt = TRUE), it did not solved the
issue.
Nevertheless thanks,
Juergen
__
R-help@r-project.org
Am Freitag, den 18.02.2011, 11:53 -0800 schrieb Peter Ehlers:
> On 2011-02-18 11:16, Juergen Rose wrote:
> > If do:
> >> library("e1071")
> >> example(svm)
> >
> > I get:
> >
> >
> > svm> data(iris)
> >
> > svm&g
If do:
> library("e1071")
> example(svm)
I get:
svm> data(iris)
svm> attach(iris)
svm> ## classification mode
svm> # default with factor response:
svm> model <- svm(Species ~ ., data = iris)
svm> # alternatively the traditional interface:
svm> x <- subset(iris, select = -Species)
svm> y <- S
rary/2.12"
[2] "/usr/lib64/R/library"
>
How can I reset libPaths permanently for root to "/usr/lib64/R/library"?
I have:
root@lynx:/root(4)# R --version
R version 2.12.1 (2010-12-16)
..
Regards.
--
Juergen Rose
Uni-Potsdam
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
ing 'Li ...' is malformed!
All systems are gentoo systems with R-2.10.1.
Also reinstalling of R from sources did not solve the problem.
Any hint is appreciated.
Regards
Juergen
--
Juergen Rose
Uni-Potsdam
__
R-help@r-project.org mailing l
*Combining 2 columns into 1 column many times in a very large dataset*
The clumsy solutions I am working on are not going to be very fast if I can
get them to work and the true dataset is ~1500 X 45000 so they need to be
efficient. I've searched the R help files and the archives for this list and
Am Montag, den 08.06.2009, 13:33 -0400 schrieb David Winsemius:
> On Jun 8, 2009, at 12:42 PM, Juergen Rose wrote:
>
> > Am Montag, den 08.06.2009, 18:33 +0200 schrieb Juergen Rose:
> >> Am Montag, den 08.06.2009, 12:30 -0400 schrieb milton ruser:
> >>> Dear R
Am Montag, den 08.06.2009, 18:33 +0200 schrieb Juergen Rose:
> Am Montag, den 08.06.2009, 12:30 -0400 schrieb milton ruser:
> > Dear Rose,
> >
> > no attached file came with the message.
> >
> > bests
> > milton
>
> I try once more to attache the
Am Montag, den 08.06.2009, 12:30 -0400 schrieb milton ruser:
> Dear Rose,
>
> no attached file came with the message.
>
> bests
> milton
I try once more to attache the file. I hope that 89 KB is not to large
for the mailing list.
> On Mon, Jun 8, 2009 at 12:20 PM,
Am Montag, den 08.06.2009, 18:20 +0200 schrieb Juergen Rose:
> Hello,
>
> In the attached file training.csv (I apologize for the large file) I
> have 238 objects belonging to 13 classes, which are described by 183
> properties. I would like to find a svm model for these objects.
&
Hello,
In the attached file training.csv (I apologize for the large file) I
have 238 objects belonging to 13 classes, which are described by 183
properties. I would like to find a svm model for these objects.
I tried the following R statements.
library('e1071')
datatraining <- read.csv("training
> > version.string R version 2.8.1 (2008-12-22)
> >
> >
> >
> > Derek N. Eder
> > Gothenburg University
> > Vigilance and Neurocognition Laboratory
> > Medicinaregatan 8B
> > Gothenburg Sweden
> > SE 405 30
> >
> > tlf (031) 342-8261
> > mobil 0704
Am Sonntag, den 17.05.2009, 13:16 -0500 schrieb Dirk Eddelbuettel:
> On 17 May 2009 at 12:53, Juergen Rose wrote:
> | 'revdep-rebuild' under GENTOO shows me
> | that /usr/lib64/R/library/tkrplot/libs/tkrplot.so, which was installed
> | at April 24th, is broken.
> |
Hi,
'revdep-rebuild' under GENTOO shows me
that /usr/lib64/R/library/tkrplot/libs/tkrplot.so, which was installed
at April 24th, is broken.
'ldd /usr/lib64/R/library/tkrplot/libs/tkrplot.so' shows me that
tkrplot.so needs libtcl8.4.so and libtk8.4.so, which is no more
installed since the installat
other mailing list simply to reply the
postings.
Regards Juergen
> 2009/5/8 Juergen Rose
> Am Freitag, den 08.05.2009, 02:43 -0700 schrieb Tony Breyal:
> > Hi Martial,
> >
> > The rgl package is quite nice for this sort of thing:
>
Hi,
I would like to call a R script sometimes with:
R --slave --vanilla --args Debug=1 N=25 < test.R
and sometimes with
R --slave --vanilla Debug=1 < test.R
or similar.
Inside the R script I get the arguments with:
args=(commandArgs(TRUE))
if(length(args)==0){
print("===No arguments s
Am Donnerstag, den 16.04.2009, 15:14 -0400 schrieb Chuck Cleland:
> On 4/16/2009 2:58 PM, Juergen Rose wrote:
> > The second beginner question. I want to create a new dataframe, where
> > each element of the original dataframe is translated to 1 if it was "+",
>
The second beginner question. I want to create a new dataframe, where
each element of the original dataframe is translated to 1 if it was "+",
to 0 if it was "-" to -1 otherwise. I could do with:
Lines <- "abcd
+-+ +
+++ -
+1- '+ '
-
quot;tripels="); print(tripels)
and I am very satisfied.
Juergen
> baptiste
> On 16 Apr 2009, at 17:33, Juergen Rose wrote:
>
> > Am Donnerstag, den 16.04.2009, 10:59 -0400 schrieb David Winsemius:
> >
> > Thanks David,
> >
> > is there also
Am Donnerstag, den 16.04.2009, 10:59 -0400 schrieb David Winsemius:
Thanks David,
is there also a shorter way to get the columns names of the new data
frames?
Juergen
> On Apr 16, 2009, at 10:14 AM, Juergen Rose wrote:
>
> > Hi,
> >
> > as a R-newcomer I would like
Hi,
as a R-newcomer I would like to create some new data frames from a given
data frame. The first new data frame should content all pairs of the
columns of the original data frame. The second new data frame should
content all tripels of of the columns of the original data frame and the
last the q
=var.png)
plot(var.canada)
dev.off()
i only get the last plot.
how can i save the four plots, not only the last one?
thanks in advance,
rose
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do re
"--- i=%2d rc=%s ---",i,rc))
if (rc != "try-error") {
cmd<-paste("sed -n \"s/.*[(](.*)[)].*/\1/p\" ",log," > text.log")
system(cmd)
#unlink(log)
print("--- summary(wksh
ticularly useful when the
probability of being "diseased" is even smaller and I want a large
number of diseased individuals.
Any pointers to do this would be extremely helpful!
Thank you,
Sherri Rose
UC Berkeley
[[alternative HTML version deleted]]
Dear R Help,
I read through the archives pretty extensively before sending this
email, as it seemed there were several threads on using predict with
GLM. However, while my issue is similar to previous posts (cannot
get it to predict using new data), none of the suggested fixes are
working
58 matches
Mail list logo