Hi,
I am a student studying Biostatistics at University. We have been advised to
install R and R commander. I managed to do this successfully, except I wasn't
able to complete the final step - which would enable both R and R commander to
launch when I open the R icon on my desktop.
Is it possible the problem is another?
I cannot generate png images when R runs on a machine without
*installed* X11
Here is the error message when I submit a simple png() plot on a
computing node of my cluster.
Error in X11(paste(png::, filename, sep = ), width, height,
pointsize, :
On 3/14/10, john_j_carr...@mail.com john_j_carr...@mail.com wrote:
I would appreciate any assistance as soon as possible (so I don't get too
far behind in my studies).
I am not sure what the exact issue is, but you can always start Rcmdr
manually after the R start-up. Simply issue a
On Sun, Mar 14, 2010 at 5:14 AM, Sharpie ch...@sharpsteen.net wrote:
I had this exact same problem last summer when attempting to set up an
automated process involving image generation on a remote server. Since I
didn't have admin rights to the server, I ended up switching to the Cairo
Hi,
Could you please tell me how I correct the following error message?
Error in object$tables[[v]] : subscript out of bounds
This is the code:
library(e1071)
data(iris)
attach(iris)
class_label - names(iris)[1]
myformula - formula(paste(class_label,~ .))
mymodel-naiveBayes(myformula,
Hi there,
I am trying to do multiple imputations with the mice package. My dataset
consists of 132 variables and 92 data rows. I specified the predictor matrix
using quickpred, which resulted in about 30 predictors per variable. I am using
norm as imputation method for continuous variables and
Dear all,
I would like to create a number of vectors which contain the the first n
elements of an existing vector.
For example I have the vectors vnk (200x1) and vro(200x1) and I want to
create 200 vectors that contain the 1st till the n_th element of the vectors
and thus be able to create a
Hi,
How I could improve this graphic?
http://www.divshare.com/download/10754700-f81
I would like to write groups labels in each panel and override the
labels from object.
I am try this code:
xyplot(percentagem.mortos~tempo|trat, data=bio.ens, type=a,
auto.key=list(points=FALSE,
Jim, I completely agree with everything you said.
I am curious about the cases where one would use a real number as an index
and anticipate that R would do the as.integer for you, rather than turning
it into an integer yourself.
If anyone has a simple example or situation where this arises, I'd
On 14/03/2010 10:09 AM, Bryan Hanson wrote:
Jim, I completely agree with everything you said.
I am curious about the cases where one would use a real number as an index
and anticipate that R would do the as.integer for you, rather than turning
it into an integer yourself.
Indices are very
On 14/03/2010 1:23 AM, john_j_carr...@mail.com wrote:
Hi,
I am a student studying Biostatistics at University. We have been advised to install R and R commander. I managed to do this successfully, except I wasn't able to complete the final step - which would enable both R and R commander to
Dear John,
These instructions appear to come from your instructor, and you might try
asking him or her what to do.
Duncan Murdoch has already suggested that you might not have permission to
edit a file in Program Files, and explained an alternative. You could also
try running Notepad as
I had a case yesterday where indexing with a real number was close
enough. I had about 4000 data point that I was plotting with just:
plot(x)
which would lay them out sequentially on the x-axis. As a point of
reference, I want to put on the x-axis about 20 equally spaced tick marks
with the
Dear all,
I'm trying to create a very simple stacked barchart where the
percentages are displayed inside the bar. Apparently, this is not as
simple as I thought because I can only create the chart, not the labels:
barchart(prop.table(umgang.bpa,margin=1),xlab=Proportion,auto.key=list(adj
On 14.03.2010 11:55, Amy Hessen wrote:
Hi,
Could you please tell me how I correct the following error message?
“Error in object$tables[[v]] : subscript out of bounds”
This is the code:
library(e1071)
data(iris)
attach(iris)
class_label- names(iris)[1]
This is not the name for the class
On 14.03.2010 07:44, Amy Hessen wrote:
Hi,
Could you please tell me whether there is a difference in the result of svm
when using formula instead of class label?
Well, a factor object (where you have class labels in) is not
sufficient, you also need explaining variables.
The formula
On 10.03.2010 13:26, Mark Heckmann wrote:
I have the following function that makes use of lazy loading.
I guess you mean *lazy evaluation* rather than *lazy loading* (as used
in loading functions or data from the package databases).
foo - function(x=2*y, y=x/2) cat(x,y)
Now I want to
Tobias Verbeke tobias.verbeke at gmail.com writes:
Hi Dan,
For this to work, the copula package should
explicitly import dmvnorm from the mvtnorm
package by including
importFrom(mvtnorm, dmvnorm)
in their NAMESPACE file.
You can do the same thing and rebuild + reinstall
the
All,
I am trying to put a few special symbols into a string to place on a graph
(e.g., = and superscript 2).
This clearly works, but does not look good: text-c(x2, A=B)
I tried pasting in the = symbol, but just comes out as an =.
I have tried expression() with no luck: text-c(x2,
Dear all,
I am interested to calculate confidence interval for fitted values in general
for non-linear regressions. Lets say we have y=f(x1,x2,..xN) where f() is a
non-linear regression. I would like to calculate a confidence interval for new
prediction f(a1,..,aN). I am aware of techniques
Dear R Commander experts,
I have now had multiple failures in loading R Commander with R version 2.10.1
(most recent one on the CRAN site) on a Mac running OS 10.5 or 10.6. The
installation of R Commander seems to proceed normally, but when I try to start
up R Commander, it never loads. It
See ?plotmath
Example:
plot(1:10); text(4:5, 5:4, c(expression(A = B), expression(x^2)))
Uwe Ligges
On 14.03.2010 16:38, Gerard Smits wrote:
All,
I am trying to put a few special symbols into a string to place on a graph
(e.g.,= and superscript 2).
This clearly works, but does not look
On Mar 14, 2010, at 8:11 AM, Dimitris Kapetanakis wrote:
Dear all,
I would like to create a number of vectors which contain the the
first n
elements of an existing vector.
For example I have the vectors vnk (200x1) and vro(200x1) and I want
to
create 200 vectors that contain the 1st
In the paste I had provided one possible solution to this, see
http://n4.nabble.com/Confidence-intervals-nls-td1556487.html#a1556702
Walmes.
-
..ooo0
...
..()... 0ooo...
Dear Dwight,
I've never observed this problem myself, and many people apparently run the
tcltk and Rcmdr packages with R 2.10.1 under Mac OS 10.6 without difficulty.
You can confirm that the problem is with tcltk by trying to load that
package independently of the Rcmdr: i.e., library(tcltk).
Here's what I do,
I'm open to any suggestions and improvements...
seq.log=function(x1,x2=1){
if(length(x1)==2){x2=x1[2];x1=x1[1];}
n1=floor(log(x1)/log(10))
n2=floor(log(x2)/log(10))
suff=NULL;
if(x1==1000){n1=n1+1;}
if(x2==1000){suff=1000;}
On 09.03.2010 14:01, Grzesiek wrote:
Hi
I want to create a nice picture about my result of k -the nearest neighbours
algorithm. Here is my easy code:
#
library(klaR)
library(ipred)
library(mlbench)
data(PimaIndiansDiabetes2)
## It looks like something like this will meet your needs
## Rich
tmp - data.frame(trat=letters[1:3], y=rnorm(3), x=1:3)
xyplot(y ~ x | trat, data=tmp)
strip.levelnames - c(expression(H[2]*O), expression(x^2+y^2),
expression(fraction(x^3, 1+x^3)))
xyplot(y ~ x | trat, data=tmp,
## Sorry, typo in my last email. frac is the correct spelling, not
fraction
## RIch
tmp - data.frame(trat=letters[1:3], y=rnorm(3), x=1:3)
xyplot(y ~ x | trat, data=tmp)
strip.levelnames - c(expression(H[2]*O), expression(x^2+y^2),
expression(frac(x^3, 1+x^3)))
xyplot(y ~ x | trat, data=tmp,
Hi Uwe,
Thanks for your reply.
I did not understand what you mean and I still receive the error message. Do
you mean that something is wrong in computing FORMULA?
I want to use formula in Naïve instead of using the class label, could you
please tell me where is the wrong?
Cheers,
Amy
maddy wrote:
Error in DoSimulateRF(n = n, reg = register, paired = paired) :
.Random.seed is not an integer vector but of type 'double'
I tried to trace back the source of the error but installations seem
correct to me.
rm(.Random.seed) does not work in my case.
You told us very
maddy wrote:
I did not understand what you mean by updating the system. I am new
user of R and I downloaded R a few days ago. Also I installed the
required packages for my program(geoR, randomFields), there was just
one version I could see for the packages.
The code I am using is as
Hello,
I am a graduate student of University of Florida.
I am trying to run a process variation model and I am facing the following
error.
-
Analysis of geostatistical data
For an Introduction to geoR go to http://www.leg.ufpr.br/geoR
Hello,
I did not understand what you mean by updating the system. I am new
user of R and I downloaded R a few days ago. Also I installed the
required packages for my program(geoR, randomFields), there was just
one version I could see for the packages.
The code I am using is as follows
I have two questions regarding the ecdfplot function in the
latticeExtra package.
1. How can I plot the fraction of values = x rather than =x, like
the what = 1-F argument in the Ecdf function in the Hmisc package?
2. When I try to log-transform the y-axis, I get a warning that it
can't have log
maddy madhura1301 at gmail.com writes:
Hello,
I did not understand what you mean by updating the system. I am new
user of R and I downloaded R a few days ago. Also I installed the
required packages for my program(geoR, randomFields), there was just
one version I could see for the
Yes. I meant lazy evaluation :)
I will try to clarify what I mean.
I have a function foo and in its arguments use a reference to another
argument, like:
foo - function(x=y, y=x)
I would like to specify the function in a way it is possible to change
the way the argument y is evaluated.
e.g.:
Hello
I'm working with R since a few month and have still many trivial
questions - I guess! Here is what I want:
I have this matrix:
dim(datjan)
[1] 899 4
The first 10 rows looks as follows:
datjan[1:10,]
V1 V2 V3 V4
1 1961 1 1 24
2 1961 1 2 24
3 1961 1 3 24
4 1961 1
Jeff Stevens stev0175 at googlemail.com writes:
I have two questions regarding the ecdfplot function in the
latticeExtra package.
1. How can I plot the fraction of values = x rather than =x, like
the what = 1-F argument in the Ecdf function in the Hmisc package?
2. When I try to
Hi,
I am new to R and I am trying to plot a minimum spanning tree from a
distance matrix. The following code will plot the minimum spanning
tree for me, however, genomes that have a distance of 0 between them
in the distance matrix are plotted as two separate nodes on the
minimum spanning tree
Hello Sir,
Thanks for reply.
The SessionInfo() gives the following output,
R version 2.10.1 (2009-12-14)
i386-pc-mingw32
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
Hi Uwe,
Thank you so much for your reply.
I still receive the error message.
These are the details of R:
1)R version 2.9.1
2)package 'e1071' was built under R version 2.9.2
this is the whole code- I dont use any other code:
library(e1071)
data(iris)
attach(iris)
class_label -
On 14.03.2010 20:17, Amy Hessen wrote:
Hi Uwe,
Thank you so much for your reply.
I still receive the error message.
These are the details of R:
1)R version 2.9.1
2)package 'e1071' was built under R version 2.9.2
this is the whole code- I don’t use any other code:
library(e1071)
On 14.03.2010 19:12, Amy Hessen wrote:
Hi Uwe,
Thanks for your reply.
I did not understand what you mean and I still receive the error message.
OK, so which version of R and which version of e1071 is this?
Do you have any objects in your workspace?
I do not get an error message, just a
Hi Martin,
it is slightly unclear to me what you are trying to achieve... are you
trying to tabulate how often each value appears in datjan[,4]? Then
table(datjan[,4]) may be what you want.
HTH
Stephan
Schmidt Martin schrieb:
Hello
I'm working with R since a few month and have still many
Hello all,
Thanks for the help. I was able to run the code by removing random seed
statement and putting
set.seed(1)
Sincerely,
Maddy
--
View this message in context:
http://n4.nabble.com/the-error-in-DoSimulateRF-function-tp1592572p1592709.html
Sent from the R help mailing list archive at
On 14/03/2010 4:33 PM, Mark Heckmann wrote:
Yes. I meant lazy evaluation :)
I will try to clarify what I mean.
I have a function foo and in its arguments use a reference to another
argument, like:
foo - function(x=y, y=x)
I would like to specify the function in a way it is possible to
Try this:
foo2 - function(x=2*y, y=x/2) eval(substitute(cat(x,y,\n)))
foo2(x = 1, y = x/3)
1 0.333
foo2(x = y/2, y = 10)
5 10
On Wed, Mar 10, 2010 at 7:26 AM, Mark Heckmann mark.heckm...@gmx.de wrote:
I have the following function that makes use of lazy loading.
foo - function(x=2*y,
Dear all,
I am making a barplot as following:
barplot(c(1,2,3,5,2,3,1),names.arg=c(100,200,300,400,500,600,700),xlab=diameter,ylab=flow,main=some
title,space=0.1)
I am also trying to add a probability density curve, however using
lines(density(c(1,2,3,5,2,3,1))) does not give a desired
Hi,
I'm looking to move from Windows into a 64-bit Linux environment. Which is
the best Linux Flavor to use within R? To install R on this environment, do
I need to do any compiling?
Thanks all!
Axel.
[[alternative HTML version deleted]]
__
I am up and running on ubuntu. I have not had to compile anything,
but If I did apt-get build-dep r-base and everything would work fine.
Maybe I am understating this. You can add some repositories that are
not the main ones to always have an up to date R on your system.
hth,
Stephen
On Sun,
Dne Ne 14. března 2010 23:04:02 Axel Urbiz napsal(a):
Hi,
I'm looking to move from Windows into a 64-bit Linux environment. Which is
the best Linux Flavor to use within R? To install R on this environment, do
I need to do any compiling?
IMHO distributions like Ubuntu, openSUSE or Mandriva
On Sun, Mar 14, 2010 at 3:04 PM, Axel Urbiz axel.ur...@gmail.com wrote:
Hi,
I'm looking to move from Windows into a 64-bit Linux environment. Which is
the best Linux Flavor to use within R? To install R on this environment, do
I need to do any compiling?
Thanks all!
Axel.
Do NOT pick
Just to make this thoroughly confusing, I will say that I am very
happy with Fedora, which is the bleeding-edge version of RedHat, which
I used starting around 1996. Tom Spot Callaway pays close attention
to the R RPM, and several of the R packages are also available as RPMs
(but I don't use
Thanks a lot. It is exactly what I was looking for. I found though and
another way (worse) to do it, so I just post in case someone find it useful
sk-nz*e*(vnk[c(i:0)]%*%vro[c(0:i)])
for(i in 0:200){
sk[i]-nz*e*(vnk[c(i:0)]%*%vro[c(0:i)])
}
--
View this message in context:
I am currently running a generalized linear mixed effect model using glmer and
I want to estimate how much of the variance is explained by my random factor.
summary(glmer(cbind(female,male)~date+(1|dam),family=binomial,data= liz3))
Generalized linear mixed model fit by the Laplace
CRAN (and crantastic) updates this week
New packages
* apcluster (1.0.1)
Ulrich Bodenhofer
http://crantastic.org/packages/apcluster
The apcluster package implements Frey's and Dueck's Affinity
Propagation clustering in R. The algorithms are analogous to the
Matlab code
Based on a discussion found on the R mailing list but dating back to 2008, I
have compared the log-likelihoods of the glm model and of the glmer model as
follows:
lrt - function (obj1, obj2){
L0 - logLik(obj1)
L1 - logLik(obj2)
L01 - as.vector(- 2 * (L0 - L1))
df - attr(L1, df) -
Tal Galili tal.galili at gmail.com writes:
Hi Nilza,
I just wrote a more detailed answer to your question in the following post:
Google spreadsheets + google forms + R = Easily collecting and importing
data for analysishttp://www.r-statistics.com/2010/03/google-spreadsheets-
Hi Olga,
may be you can work around with the suggestions below, while other
provide the best solution for your:
barplot(c(1,2,3,5,2,3,1),names.arg=c(100,200,300,400,500,600,700),
xlab=diameter,ylab=flow,main=some title,space=0.1)
lines(lowess(c(1,2,3,5,2,3,1),f=1), type=b, lwd=2, lty=3,
Hi all:
I am a user of JM package.
Here's the problem of sample size.
The warning is:
Error in jointModel(fitLME, fitSURV_death, timeVar = time, method =
piecewise-PH-GH) :
sample sizes in the longitudinal and event processes differ.
According to the suggestion of missing data,I use the
You have three problems:
i) Barplot's plot locations are not at 100-700 in your picture.
ii) density applied to your bar hights will produce the density as if
those are x locations, not heights.
iii) density's height is scaled to unit area and not the height of your
bars.
And a statistical
See ?plotmath, especially the examples.
S
Gerard Smits g_sm...@verizon.net 03/14/10 3:38 PM
All,
I am trying to put a few special symbols into a string to place on a
graph (e.g., = and superscript 2).
This clearly works, but does not look good: text-c(x2, A=B)
I tried pasting in the =
On 15/03/2010, at 3:07 PM, S Ellison wrote
(in response to a very confused question about superimposing density
curves on barplots):
SNIP
So the bad news is that not a lot of what you're doing is right.
SNIP
Sounds like a fortune to me! :-)
cheers,
Bryan Hanson han...@depauw.edu 03/14/10 2:39 AM
Under what circumstances would the documented behavior be valuable?
Inserts tongue in cheek:
It would be useful in all the circumstances in which it would be
sensible to use a real number as a vector index.
Not that I can think of any.
I begin to think that R needs a _mis_fortunes package...
Steve E
Rolf Turner r.tur...@auckland.ac.nz 03/15/10 2:21 AM
On 15/03/2010, at 3:07 PM, S Ellison wrote
(in response to a very confused question about superimposing density
curves on barplots):
SNIP
So the bad news is that
Thanks for this answer but does that mean that working with the deviances is
better? Or how else could I evaluate the importance of my random terms?
Many thanks,
Davnah
On Mar 14, 2010, at 8:12 PM, hadley wickham wrote:
Based on a discussion found on the R mailing list but dating back
Hi,
I wrote my own function to finish my work. One strange thing happened. If
i set the number of simulations to be 10, it goes correctly. But if i set
the number of simulations into 100, then errors appeared.
Error information: The instruction at 0x6abf12cf referenced memory at
0x0286fff8. The
On 15/03/2010, at 4:01 PM, rusers.sh wrote:
Hi,
I wrote my own function to finish my work. One strange thing happened. If
i set the number of simulations to be 10, it goes correctly. But if i set
the number of simulations into 100, then errors appeared.
Error information: The instruction
On 15/03/2010, at 3:37 PM, S Ellison wrote:
I begin to think that R needs a _mis_fortunes package...
I am tempted to nominate *that* as a fortune! :-)
cheers,
Rolf Turner
##
Attention:\ This e-mail
Davnah Urbach Davnah.Urbach at dartmouth.edu writes:
Thanks for this answer but does that mean that working
with the deviances is better? Or how else could I
evaluate the importance of my random terms?
You should probably (a) search the archives of the
r-sig-mixed-models mailing list
and
71 matches
Mail list logo