[R] The newest version of Rstudio Desktop v0.98.1049 couldn't be installed

2014-09-04 Thread PO SU
Dear expeRts,    I find the newest Rstudio Desktop v0.98.1049  for windows is not newest, after i installed, it was a old version. -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU __ R-help@r-project.org mailing list

[R] Convert time zone to difference from Coordinated Universal Time

2014-09-04 Thread Tim.Williams
Hello everyone, I want to convert times provided by Sys.time() to use the difference from Coordinated Universal Time instead of the character abbreviation. For example, instead of: 2014-09-03 21:12:35 EDT I want the value as: 2004-09-03 13:20:00-04:00 Is there a way to do this with

Re: [R] GLM Help

2014-09-04 Thread peter dalgaard
I think you are looking for ~ Region + Region:Helpers - 1 a.k.a. ~ Region/Helpers - 1 Notice that these are actually the same model as your glm3 (and also as ~Region*Helpers), only the parametrization differs. The latter includes an overall Helpers term so that the interaction coefficients

Re: [R] Convert time zone to difference from Coordinated Universal Time

2014-09-04 Thread Prof Brian Ripley
On 04/09/2014 02:27, tim.willi...@ucb.com wrote: Hello everyone, I want to convert times provided by Sys.time() to use the difference from Coordinated Universal Time instead of the character abbreviation. For example, instead of: 2014-09-03 21:12:35 EDT I want the value as: 2004-09-03

Re: [R] The newest version of Rstudio Desktop v0.98.1049 couldn't be installed

2014-09-04 Thread Berend Hasselman
On 04-09-2014, at 04:27, PO SU rhelpmaill...@163.com wrote: Dear expeRts, I find the newest Rstudio Desktop v0.98.1049 for windows is not newest, after i installed, it was a old version. Questions and information relating to RStudio do not belong on this list. Send mail to RStudio

Re: [R] The newest version of Rstudio Desktop v0.98.1049 couldn't be installed

2014-09-04 Thread Pascal Oettli
Please ask your question to the dedicated forum: https://support.rstudio.com Regards, Pascal On Thu, Sep 4, 2014 at 11:27 AM, PO SU rhelpmaill...@163.com wrote: Dear expeRts, I find the newest Rstudio Desktop v0.98.1049 for windows is not newest, after i installed, it was a old version.

[R] Error in ur.df function

2014-09-04 Thread mamuash bukana
Dear R users, For a time series, say y: y-cumsum(rnorm(100)) # I used ur.df function (urca package) to test for unit root with/without a drift as follows: test-ur.df(y,lags=3,type=drift) # this works for the artificial data here, but when I apply the same function to my very big data, it comes

Re: [R] snow/Rmpi without MPI.spawn?

2014-09-04 Thread Martin Morgan
On 09/03/2014 10:24 PM, Leek, Jim wrote: Thanks for the tips. I'll take a look around for for loops in the morning. I think the example you provided worked for OpenMPI. (The default on our machine is MPICH2, but it gave the same error about calling spawn.) Anyway, with OpenMPI I got this:

Re: [R] wilcox.test - difference between p-values of R and online calculators

2014-09-04 Thread Lorenz, David
I think that the issue, at least with the online calculator that I looked at, is that it does not adjust the standard deviation of the test statistic for ties, so the standard deviation is larger and hence larger p-value. I was able to reproduce the reported z-score using the equation for the

Re: [R] wilcox.test - difference between p-values of R and online calculators

2014-09-04 Thread peter dalgaard
Yes, that is the point that David made and that I illustrated with the simulations: The null distribution of W is more narrow in the presence of ties, hence W=485 is a more extreme observation in the tied case. I.e. it will look less extreme if you ignore that there are ties. -pd On 04 Sep

[R] Operator proposal: %between%

2014-09-04 Thread Torbjørn Lindahl
Not sure if this is the proper list to propose changes like this, if it passes constructive criticism, it would like to have a %between% operator in the R language. I currently have this in my local R startup script: `%between%` - function(x,...) { y - range( unlist(c(...)) ) return( x =

Re: [R] Convert time zone to difference from Coordinated

2014-09-04 Thread Tim.Williams
Thank you for your reply. %z fits the bill perfectly. Apologies for my breach of etiquette on my first post to the list. - Tim R 3.1.1 on Windows 7 OS From: Prof Brian Ripley rip...@stats.ox.ac.uk To: r-help@r-project.org Subject: Re: [R] Convert time zone to difference from

Re: [R] Operator proposal: %between%

2014-09-04 Thread Duncan Murdoch
On 04/09/2014 10:41 AM, Torbjørn Lindahl wrote: Not sure if this is the proper list to propose changes like this, if it passes constructive criticism, it would like to have a %between% operator in the R language. But it appears that you do: I currently have this in my local R startup script:

Re: [R] snow/Rmpi without MPI.spawn?

2014-09-04 Thread Jim Leek
Ah, now it's working. Thanks. Now I just need to figure out how to get snow doing this... Jim On 09/04/2014 05:03 AM, Martin Morgan wrote: On 09/03/2014 10:24 PM, Leek, Jim wrote: Thanks for the tips. I'll take a look around for for loops in the morning. I think the example you provided

Re: [R] Covariance between two dichotomous variables

2014-09-04 Thread Greg Snow
If you have 2 dichotomous variables coded 0/1 (and stored as numerics) then the var and cov functions can be used to compute the covariance as if they were continuous variables. Some algebra shows that the continous covariance and the binomial covariance only differ by the denominator (n for

[R] Defining vectors with per-determined correlations

2014-09-04 Thread John Sorkin
I need to define three vectors x, y, z (each of length 100) such that the pair-wise correlations of the vectors have per-defined values r1 and r2. More specifically I need to define x, y, and z so that: corr(x,y) = r1 corr(y,z) = r2 Is there any easy way to accomplish this with R? Thank

Re: [R] snow/Rmpi without MPI.spawn?

2014-09-04 Thread luke-tierney
You could look into the RMPISNOW shell script that is included in snow for use with mpirun, eg as mpirun -np 3 RMPISNOW The script might need adjusting for your setting. Best, luke On Thu, 4 Sep 2014, Jim Leek wrote: Ah, now it's working. Thanks. Now I just need to figure out how to get

[R] citation of a task view

2014-09-04 Thread Dr. Pablo E. Verde
Hi all, Which is a formal bibliography citation of an R's task view? For example if I want to make a citation of MetaAnalysis task view. Thanks in advance! Pablo __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Revolutions blog roundup: August 2014

2014-09-04 Thread David Smith
Revolution Analytics staff and guests write about R every weekday at the Revolutions blog: http://blog.revolutionanalytics.com and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you missed them, here are some articles related

[R] log likelihood and optimize

2014-09-04 Thread tonia marks
Hello I want to estimate the covariance matrix of the likelihood f(x1,x2,x3)=f(x2|x1)f(x3|x2)f(x1), where f(x2|x1) follows a Binomial distribution with parameters (2, 0.2), f(x3|x2) follows a Binomial distribution with parameters (2, 0.8) and f(x1) follows a Binomial distribution with

[R] mvpart error in R 3.1.1 s_to_rp not available for .C()

2014-09-04 Thread Angel Marley
Dear R list, I'm working with recursive tress using packages mvpart and rpart in R in linux xubuntu (64). The package performed with no problem under my previous R version (2.14) I had recently updated my R version to 3.1.1 and when I try to run a mvpart model I get the following error

[R] gplot heatmaps: clustering according to rowsidecolors + key.xtickfun

2014-09-04 Thread Tim Richter-Heitmann
Hi there, I have two questions about heatmap.2 in gplot. My input is a simple square matrix with numeric values between 75 and 100 (it is a similarity matrix based on bacterial DNA sequences). 1. I can sort my input matrix into categories with rowsidecolors (in this case, very conveniently

[R] Help with regression

2014-09-04 Thread Basilius Sapientia
I have this code: Vm - c(6.2208, 4.9736, 4.1423, 3.1031, 2.4795, 1.6483, 1.2328, 0.98357, 0.81746, 0.60998); #Molvolume p - c(0.4, 0.5, 0.6, 0.8, 1, 1.5, 2, 2.5, 3, 4)*1000; #Pressure Rydb - 8.3144621; #Constant Tempi - 300; #Temperature in Kelvin Vmi - Vm^(-1); #To get Vm^(-1) Zi -

[R] R for chemistry

2014-09-04 Thread Basilius Sapientia
Dear community. I am studying chemistry and physics. We don'te get an intro to mathematic programms or programming. We shall just find something and use it. So I have choosen R. But was that a good choice? Do you think I could get threw my study with R as my only programming language (combined

Re: [R] citation of a task view

2014-09-04 Thread Duncan Murdoch
On 04/09/2014 4:52 AM, Dr. Pablo E. Verde wrote: Hi all, Which is a formal bibliography citation of an R's task view? For example if I want to make a citation of MetaAnalysis task view. Thanks in advance! I don't think there is a recognized standard one. I would use whatever format your

Re: [R] Defining vectors with per-determined correlations

2014-09-04 Thread Ista Zahn
See ?mvrnorm in the MASS package. Best, Ista On Thu, Sep 4, 2014 at 12:04 PM, John Sorkin jsor...@grecc.umaryland.edu wrote: I need to define three vectors x, y, z (each of length 100) such that the pair-wise correlations of the vectors have per-defined values r1 and r2. More specifically I

Re: [R] R for chemistry

2014-09-04 Thread Rich Shepard
On Thu, 4 Sep 2014, Basilius Sapientia wrote: So I have choosen R. But was that a good choice? Basilius, Yes. For data analyses. While you could use R as a general programming language, but others are better suited. Do you think I could get threw my study with R as my only programming

[R] Built R package with example

2014-09-04 Thread Karim Mezhoud
Dear All, How can I add folder content examples of needed files to run example? The simple add of folder did not built and reload with the package. Thanks! Karim [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Turn Rank Ordering Into Numerical Scores By Transposing A Data Frame

2014-09-04 Thread Simon Kiss
Hi David and list: This is working, except at this command mycast - dcast(mymelt, row~color, value.var=rank, fill=0) dcast is using length as the default aggregating function. This results in not accurate results. It tells me, for example how many choices were missing values and it tells me if

Re: [R] citation of a task view

2014-09-04 Thread Achim Zeileis
On Thu, 4 Sep 2014, Duncan Murdoch wrote: On 04/09/2014 4:52 AM, Dr. Pablo E. Verde wrote: Hi all, Which is a formal bibliography citation of an R's task view? For example if I want to make a citation of MetaAnalysis task view. Thanks in advance! I don't think there is a recognized

Re: [R] R for chemistry

2014-09-04 Thread Jeff Newmiller
R is useful for quite a range of applications, but not everything. I recommend planning on learning multiple programming languages eventually, because each type of problem has its own set of useful phrases. An example of this in R is comparing the base, lattice, and ggplot models of graph

Re: [R] citation of a task view

2014-09-04 Thread Duncan Murdoch
On 04/09/2014 2:28 PM, Achim Zeileis wrote: On Thu, 4 Sep 2014, Duncan Murdoch wrote: On 04/09/2014 4:52 AM, Dr. Pablo E. Verde wrote: Hi all, Which is a formal bibliography citation of an R's task view? For example if I want to make a citation of MetaAnalysis task view. Thanks in

Re: [R] Turn Rank Ordering Into Numerical Scores By Transposing A Data Frame

2014-09-04 Thread David L Carlson
I think we would need enough of the data you are using to figure out how to modify the process. Can you use dput() to send a small data set that fails to work? David C -Original Message- From: Simon Kiss [mailto:sjk...@gmail.com] Sent: Thursday, September 4, 2014 1:28 PM To: David L

Re: [R] structural equation modeling in sem, error, The model has negative degrees of freedom = -3, and The model is almost surely misspecified...

2014-09-04 Thread Michele Silva
Dear Prof. John, I'm trying to solve the following model in R, but I getting error about the degree of freedom. As I don't have much experience, could you please explain to me what is the problem? I'm studying the influence of several soil parameters (pH, NH4, OM, Moisture) on the abundance of

Re: [R] depth of labels of axis

2014-09-04 Thread David Winsemius
On Sep 3, 2014, at 10:05 PM, Jinsong Zhao wrote: On 2014/9/3 21:33, Jinsong Zhao wrote: On 2014/9/2 11:50, David L Carlson wrote: The bottom of the expression is set by the lowest character (which can even change for subscripted letters with descenders. The solution is to get axis() to

Re: [R] Operator proposal: %between%

2014-09-04 Thread Greg Snow
The TeachingDemos package has %% and %=% operators for a between style comparison. So for your example you could write: 1 %% 5 %% 10 or 1 %=% 5 %=% 10 And these operators already work with vectors: lb %=% x %% ub and can even be further chained: 0 %% x %% y %% z %% 1 # only points where x

Re: [R] structural equation modeling in sem, error, The model has negative degrees of freedom = -3, and The model is almost surely misspecified...

2014-09-04 Thread John Fox
Dear Michele, It's impossible to know without the data, since that's the only way to determine which variables in the model are observed and which are latent variables, but if there are negative df, then you're trying to estimate a model with more free parameters than there are moments

Re: [R] Help with regression

2014-09-04 Thread Adams, Jean
You will find lots of examples if you do an internet search for R quadratic regression Here's just one ... http://www.theanalysisfactor.com/r-tutorial-4/ Jean On Thu, Sep 4, 2014 at 10:40 AM, Basilius Sapientia basilius...@gmail.com wrote: I have this code: Vm - c(6.2208, 4.9736,

Re: [R] citation of a task view

2014-09-04 Thread PabloEmilio . Verde
Hi Achim and Murdoch, Thanks a lot! Cheers, Pablo Achim Zeileis achim.zeil...@uibk.ac.at escribió: On Thu, 4 Sep 2014, Duncan Murdoch wrote: On 04/09/2014 4:52 AM, Dr. Pablo E. Verde wrote: Hi all, Which is a formal bibliography citation of an R's task view? For example if I want to

Re: [R] Help with regression

2014-09-04 Thread David Winsemius
On Sep 4, 2014, at 8:40 AM, Basilius Sapientia wrote: I have this code: Vm - c(6.2208, 4.9736, 4.1423, 3.1031, 2.4795, 1.6483, 1.2328, 0.98357, 0.81746, 0.60998); #Molvolume p - c(0.4, 0.5, 0.6, 0.8, 1, 1.5, 2, 2.5, 3, 4)*1000; #Pressure Rydb - 8.3144621; #Constant Tempi - 300;

Re: [R] depth of labels of axis

2014-09-04 Thread David L Carlson
The problem with this approach is that the horizontal positioning of the labels is based on the width of the label including the phantom part so that the E's are pushed to the left of the tick mark (at least on my Windows machine). But it does provide a way of dealing with superscripts as long

[R] Subset a column with specific characters

2014-09-04 Thread Kuma Raj
This post has NOT been accepted by the mailing list yet. I would like to subset a column based on the contents of a column with specific character. In the sample data I wish to do the following: First keep the data based on column prog if prog contains ca, and secondly to drop if race contains ic

Re: [R] find the data frames in list of objects and make a list of them

2014-09-04 Thread Matthew
Thank you very much, Bill ! It has taken my a while to figure out, but yes, what I need is a list (the R object, list) of data frames and not a character vector containing the names of the data frames. Thank you very much. This works well and is getting me in the direction I want to

[R] calculate Euclidean distances between populations in R with this data structure

2014-09-04 Thread Ding, Yuan Chun
I want to calculate Euclidean distance between 12 populations, in each population there are 20 samples and each sample is measured for 100 genes (these are microarray data; the numbers here are just examples). The equation I found is: distance = sqrt{[sum(Average of xi -average of yi)^2] /n

Re: [R] Operator proposal: %between%

2014-09-04 Thread David Winsemius
On Sep 4, 2014, at 12:54 PM, Greg Snow wrote: The TeachingDemos package has %% and %=% operators for a between style comparison. So for your example you could write: 1 %% 5 %% 10 or 1 %=% 5 %=% 10 And these operators already work with vectors: lb %=% x %% ub and can even be

Re: [R] Subset a column with specific characters

2014-09-04 Thread David Winsemius
On Sep 4, 2014, at 2:58 PM, Kuma Raj wrote: This post has NOT been accepted by the mailing list yet. Well, it has now. Were you earlier posting from Nabble? (Not an efficient strategy.) I would like to subset a column based on the contents of a column with specific character. In the sample

Re: [R] calculate Euclidean distances between populations in R with this data structure

2014-09-04 Thread Sarah Goslee
I'd probably start with ?dist Sarah On Thu, Sep 4, 2014 at 4:10 PM, Ding, Yuan Chun ycd...@coh.org wrote: I want to calculate Euclidean distance between 12 populations, in each population there are 20 samples and each sample is measured for 100 genes (these are microarray data; the

Re: [R] calculate Euclidean distances between populations in R with this data structure

2014-09-04 Thread Sarah Goslee
Hi, Please keep your replies on the R-help list so others may participate in the conversation. On Thu, Sep 4, 2014 at 8:12 PM, Ding, Yuan Chun ycd...@coh.org wrote: Hi Sarah, Thank you very much for your quick response. I checked the dist() function. It calculate distance between two

Re: [R] calculate Euclidean distances between populations in R with this data structure

2014-09-04 Thread Ding, Yuan Chun
Hi Sarah, Thank you very much for your quick response. I checked the dist() function. It calculate distance between two samples with a number of variables. Variable1 variable 2 variable 3 variable4 X 3 5 67 Y 4 8 910

Re: [R-es] Como se hace el operador o (OR) para seleccionar dos o mas niveles de un vector ?

2014-09-04 Thread eric
Muchas gracias a los dos !! Slds, eric. On Thu 04 Sep 2014 03:36:52 CLT, Carlos Ortega wrote: También puedes utilizar el parámetro subset dentro de xyplot(). O aplicarlo primero fuera de xyplot()... http://www.ats.ucla.edu/stat/r/modules/subsetting.htm Saludos, Carlos Ortega

[R-es] Paquetes Rhadoop.

2014-09-04 Thread Jessica Morocho
Hola, antes que nada, muchas gracias por aceptar mi solicitud =). Tengo unos inconvenientes y quisiera saber si alguien me podría ayudar con lo siguiente: necesito instalar los paquetes rhdfs, rmr, rhbase en Rhadoop, no se donde descargarme los paquetes y tampoco como seria su instalación en R.