Re: [R] trouble with installing R-2.12.0 from source on Windows

2010-10-16 Thread Prof Brian Ripley
On Fri, 15 Oct 2010, Erin Hodgess wrote: Dear R People: I'm trying to install R-2.12.0 from source on a Netbook with Windows XP. I have installed the Rtools.exe (version 2.12) However, when I enter tar xvfz R-2.12.0.tar.gz I keep getting the message cannot change owneship to uid 501, gid 20

[R] Error in eval(expr, envir, enclos) : object 'x' not found

2010-10-16 Thread Jumlong Vongprasert
Dear all I tried to use regression to predicted mu data, but it has error like this: IWJR.complete x y [1,] 33.17635 2.4705021 [2,] 81.61225 3.3815620 [3,] 65.47392 1.6518975 [4,] 57.97806 1.6110785 [5,] 76.05528 2.1601246 [6,] 41.36090 1.5498132 [7,] 68.77844

[R] Binaries of R.12.0 for Windows: where are RGUI and Rterm ?

2010-10-16 Thread Renaud Lancelot
Dear all, I've just downloaded R.12.0 from CRAN (http://cran.r-project.org/bin/windows/base/release.htm). I am unable to find RGUI.exe as well as Rterm.exe. Conversely to what is explained in readme.R.2.12.0: There are two versions of the R executable in R-2.12.0\bin\i386 (32-bit) or

Re: [R] Error in eval(expr, envir, enclos) : object 'x' not found

2010-10-16 Thread Peter Dalgaard
On 10/16/2010 09:27 AM, Jumlong Vongprasert wrote: predict(lm(x~y),IWJR.complete) Error in eval(expr, envir, enclos) : object 'x' not found I'm trying to find answers to solve my problem, but I cann't found what I want to solve the problem. What do I have to do to solve this problem.

Re: [R] Binaries of R.12.0 for Windows: where are RGUI and Rterm ?

2010-10-16 Thread Prof Brian Ripley
The installer (unlike, say, the 2.12.0 RC version) seems to have been built without 32-bit files (it is too small ... it should be ca 37Mb). Please try again once Duncan has had a chance to rebuild it. On Sat, 16 Oct 2010, Renaud Lancelot wrote: Dear all, I've just downloaded R.12.0 from

Re: [R] Poisson Regression

2010-10-16 Thread Peter Dalgaard
On 10/14/2010 06:42 PM, Viechtbauer Wolfgang (STAT) wrote: Since the number of parameters then rises linearly with the number of subjects, this may be a case where maximum likelihood theory breaks down, that is, a Neyman-Scott problem. My thought too. The basic structure is close to the Rasch

Re: [R] Binaries of R.12.0 for Windows: where are RGUI and Rterm ?

2010-10-16 Thread huang min
The download file is about 37mb. On Sat, Oct 16, 2010 at 4:24 PM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: The installer (unlike, say, the 2.12.0 RC version) seems to have been built without 32-bit files (it is too small ... it should be ca 37Mb). Please try again once Duncan has had a

Re: [R] Binaries of R.12.0 for Windows: where are RGUI and Rterm ?

2010-10-16 Thread Duncan Murdoch
On 16/10/2010 4:24 AM, Prof Brian Ripley wrote: The installer (unlike, say, the 2.12.0 RC version) seems to have been built without 32-bit files (it is too small ... it should be ca 37Mb). Please try again once Duncan has had a chance to rebuild it. Thanks for the heads up. Yes, something

Re: [R] boxplot issue

2010-10-16 Thread Jim Lemon
On 10/16/2010 12:50 AM, Jonas Josefsson wrote: Hi! I am trying to produce a graph which shows overlap in latitude for a number of species. I have a dataframe which looks as follows species1,species2,species3,species4. minlat 6147947,612352,627241,6112791 maxlat

[R] GAM Predictions (mgvc)

2010-10-16 Thread Lars Bishop
Hi, Is there any way I can see how exactly the prediction equation is constructed in the example below? I'd like to be able to replicate the predictions from the fitted gam object as given by the predict.gam method in the package mgcv. library(mgcv) data(trees) ct1 - gam(Volume ~ s(Height) +

[R] [R-pkgs] solaR: version 0.20

2010-10-16 Thread David Winsemius
From: Oscar Perpiñan Lamigueiro oscar.perpi...@upm.es Date: October 8, 2010 4:25:34 AM EDT To: r-packa...@r-project.org Subject: [R-pkgs] solaR: version 0.20 Hello, I'd like to announce the availability of the version 0.20 of the solaR package. It provides a set of calculation methods of solar

Re: [R] Question of Quantile Regression for Longitudinal Data

2010-10-16 Thread ywh123
I've used the function rq.fit.sfn and rq.fit.panel to estimate a quantile regression on a panel data set.Now I would like to compute an statistic to measure the goodness of fit of this model (T-statistics and P-value ). Does someone know how could I do that? best wish -- View this message

Re: [R] trouble with installing R-2.12.0 from source on Windows

2010-10-16 Thread Prof Brian Ripley
Having managed to reproduce this with the current Rtools212, I needed tar -zxvf --no-same-owner R-2.12.0.tar.gz (or -xf: the 'z' is optional, and --no-same-permissions would also be a useful sanity check). Although the messages are unclear, they do seem merely to be notices not errors.

Re: [R] R MySQL (Databases)

2010-10-16 Thread [Ricardo Rodriguez] Your XEN ICT Team
Hi! Santosh Srinivas wrote: Dear R-helpers, Considering that a substantial part of analysis is related data manipulation, I'm just wondering if I should do the basic data part in a database server (currently I have the data in .txt file). For this purpose, I am planning to use MySQL. Is MySQL

Re: [R] Color individual leaf labels in dendrogram

2010-10-16 Thread Kennedy
Thank you Brian, Your suggestion helped me a bit but I am not quite there yet. Now I have the following code: library(cluster) library(stats) D-matrix(nr=4,nc=4) rownames(D)-c(Node 1,Node 2,Node 3,Node 4) D[1,]-c(0,.6,.1,.7) D[2,]-c(.6,0,.3,.9) D[3,]-c(.1,.3,0,.9)

[R] [R-pkgs] Announcing TikZ Device 0.5.2

2010-10-16 Thread Charlie Sharpsteen
Version 0.5.2 of the tikzDevice is now available on CRAN in source form. Binary builds will become available in the next few days. This build supersedes 0.5.1, which was just released a couple of days ago. Version 0.5.2 is a recommended upgrade for all users as it contains fixes a major issue:

[R] Xlsx and R -read problem

2010-10-16 Thread ashz
Hi, I have an excel 2007 file located in C:\know and called try.xlsx. Whan I try to read it I get this error: file - system.file(know, try.xlsx, package = xlsx) res - read.xlsx(file, 2) # read the second sheet Error in .jnew(java/io/FileInputStream, file) :

[R] delete data row

2010-10-16 Thread IRD
Dear All I have data like this: IR xy [1,] 5 2.865490 [2,] 3 1.454611 [3,] 3 2.258772 [4,] 6 1.476128 [5,] 4 2.771606 y.j y 2.865490 and I want to delete data row in IR where y = y.j How I can do. IRD __ R-help@r-project.org

[R] [OT] language for data munging

2010-10-16 Thread Wensui Liu
dear all i think i am able to get an unbiased opinion from computing experts here other than python or perl list. the question is: which language, perl or python in particular, is better for data munging (manage and manipulate large-size data / interact with DB / pre-process data before

[R] Problem applying outer to a list of functions

2010-10-16 Thread jschamel
I'm trying to construct an array with output from the application of homogeneous input to a bunch of different functions (my final goal is to easily analyze running time of a lot of competing functions and summarize the results). In my current iteration, however, only the first function in the

Re: [R] delete data row

2010-10-16 Thread Joshua Wiley
Dear IRD, One way is to select every row except those where y = y.j and then assign that to IR. In my example, which() returns a vector of the row numbers where the condition evaluated TRUE, then I used `-` to select not those rows. IR - IR[-which(IR$y == y.j), ] HTH, Josh On Sat, Oct 16,

Re: [R] Problem applying outer to a list of functions

2010-10-16 Thread Joshua Wiley
Hi, On Sat, Oct 16, 2010 at 9:52 AM, jschamel jtscha...@alaska.edu wrote: I'm trying to construct an array with output from the application of homogeneous input to a bunch of different functions (my final goal is to easily analyze running time of a lot of competing functions and summarize

[R] A subject related question

2010-10-16 Thread Jonathan Beokhokhei
Dear friends, please allow me a naive subject oriented question at this moment. I was wondering whether VCV matrix for some multivariate normal distribution can be PSD (which I always thought must be PD). I came across that point as I was working on some sample distribution of some statistic

Re: [R] A subject related question

2010-10-16 Thread Duncan Murdoch
On 16/10/2010 2:17 PM, Jonathan Beokhokhei wrote: Dear friends, please allow me a naive subject oriented question at this moment. I was wondering whether VCV matrix for some multivariate normal distribution can be PSD (which I always thought must be PD). I came across that point as I was

Re: [R] delete data row

2010-10-16 Thread jim holtman
It is best to use 'all.equal' keeping in mind FAQ 7.31. On Sat, Oct 16, 2010 at 1:30 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Dear IRD, One way is to select every row except those where y = y.j and then assign that to IR.  In my example, which() returns a vector of the row numbers

Re: [R] Problem applying outer to a list of functions

2010-10-16 Thread jschamel
Thank you for the help! I was misunderstanding how 'outer' produced its grid of values: rather than an application of the supplied function for each element, the element takes a vector (or list) of values X and Y and combines them. Of course, looking back, this is the first sentence of the

Re: [R] Xlsx and R -read problem

2010-10-16 Thread jim holtman
try library(RODBC) and odbcConnectExcel2007; it has worked for me. On Sat, Oct 16, 2010 at 10:17 AM, ashz a...@walla.co.il wrote: Hi, I have an excel 2007 file located in C:\know and called try.xlsx. Whan I try to read it I get this error: file - system.file(know, try.xlsx, package =

[R] Spatstat Tessellation error

2010-10-16 Thread Neba Funwi-Gabga
Hello R Users, I am trying to do a quadrat count defined by covariate properties in spatstat. I have read my elevation raster into R (from ascii) and converted to class im for use in spatstat. Now I have point data of class ppp which window is the same extent as the elevation image. I can

[R] reduce the size of points in plot???

2010-10-16 Thread Hongwei Dong
Hi, R users, Can anyone tell me how I can change the size of points in my plot? For example: x - c(1,3,6,9,12) y - c(1.5,2,7,8,15) plot(x,y,pch=20) How do I reduce the size of those points? Thanks. Gary [[alternative HTML version deleted]]

Re: [R] delete data row

2010-10-16 Thread David Winsemius
IRD; There is a danger in applying logical tests of equality to floating point numbers. It may be safer to use all.equal or zapsmall in the construction of your tests. all.equal( (2^(0.5))^2 , 2) [1] TRUE (2^(0.5))^2 == 2 [1] FALSE -- David. On Oct 16, 2010, at 1:30 PM, Joshua Wiley

Re: [R] Xlsx and R -read problem

2010-10-16 Thread Gabor Grothendieck
On Sat, Oct 16, 2010 at 10:17 AM, ashz a...@walla.co.il wrote: Hi, I have an excel 2007 file located in C:\know and called try.xlsx. Whan I try to read it I get this error: file - system.file(know, try.xlsx, package = xlsx) res - read.xlsx(file, 2)  # read the second sheet Error in

Re: [R] reduce the size of points in plot???

2010-10-16 Thread David Winsemius
On Oct 16, 2010, at 12:12 PM, Hongwei Dong wrote: Hi, R users, Can anyone tell me how I can change the size of points in my plot? For example: x - c(1,3,6,9,12) y - c(1.5,2,7,8,15) plot(x,y,pch=20) How do I reduce the size of those points? plot(x,y,pch=20, cex=0.2) plot(x,y,pch=20,

[R] POSIX turns into factor

2010-10-16 Thread Toby Gass
Dear helpeRs, I am working with a dataframe that includes a column, calendar, used for plotting time series. class(dat$calendar) [1] POSIXt POSIXlt When I finish working, I save my data as a .csv file. When I read the file in again, calendar is always a factor class(dat$calendar) [1]

Re: [R] POSIX turns into factor

2010-10-16 Thread Ben Bolker
Toby Gass tobygass at warnercnr.colostate.edu writes: I am working with a dataframe that includes a column, calendar, used for plotting time series. [snip] Is this unavoidable when going back and forth from a .csv, or can I do something differently to retain the class? check out

Re: [R] using optimize with two unknowns, e.g. to parameterize a distribution with given confidence interval

2010-10-16 Thread Ben Bolker
David LeBauer dlebauer at illinois.edu writes: Hi, I would like to write a function that finds parameters of a log-normal distribution with a 1-alpha CI of (x_lcl, x_ucl): However, I don't know how to optimize for the two unknown parameters. Try optim instead.

Re: [R] bwplot change whiskers position to percentile 5 and P95

2010-10-16 Thread Frank Harrell
See also the panel.bpplot function in the Hmisc package. This gives you many options for extended box plots. Frank - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context:

Re: [R] Rmpfr question

2010-10-16 Thread Martin Maechler
Ulises M Alvarez u...@fata.unam.mx on Sat, 16 Oct 2010 14:34:25 -0500 writes: Hi: I'm trying to reproduce an arbitrary precision constant from 'Why and How to Use Arbitrary Precision' (Ghazi et al., COMPUTING IN SCIENCE ENGINEERING May/June 2010;

Re: [R] reduce the size of points in plot???

2010-10-16 Thread Chris Mcowen
Use ?points for more info on changing the appearance of points. The cex function is what you are looking for. Chris On 16 Oct 2010, at 20:12, Hongwei Dong wrote: Hi, R users, Can anyone tell me how I can change the size of points in my plot? For example: x - c(1,3,6,9,12) y -

[R] Rmpfr question

2010-10-16 Thread Ulises M. Alvarez
Hi: I'm trying to reproduce an arbitrary precision constant from 'Why and How to Use Arbitrary Precision' (Ghazi et al., COMPUTING IN SCIENCE ENGINEERING May/June 2010; http://perso.ens-lyon.fr/philippe.theveny/cise.pdf): d = 173746a + 94228b − 78487c where: a = sin(1022), b = log(17.1),

Re: [R] reduce the size of points in plot???

2010-10-16 Thread Joshua Wiley
Hi Gary, On the off chance you want to reduce size to reduce over-plotting, you can also use semi-transparent colors (otherwise this is completely irrelevant to you): # Open and setup new graphics device dev.new(); exampledev - dev.cur(); par(mfcol = c(1, 2)) # Regular color plot(x = Ex -

Re: [R] [R-sig-DB] Rmysql - dbWritetable

2010-10-16 Thread Nilza BARROS
Dear Spencer, Thank you for your help. I read your email and that`s the reason why I sent an email to r-sig-db as you suggested. But I have just realized that you suggested the command below too. I`ve tried it and that`s fine. I was waiting to solve my problem to reply the email to r-help

Re: [R] delete data row

2010-10-16 Thread Joshua Wiley
Jim and David, I certainly agree with your suggestions. How would you implement all.equal()? Since it compares entire objects (and the OP's goal is to remove any rows that equal some value), the only option I saw was to use *apply or a loop. zapsmall() is easier, (though it seems potentially

Re: [R] Recovering x/y coordinates from a scatterplot image

2010-10-16 Thread Greg Snow
You can do this by reading in the image and plotting it, then use the updateusr function from the TeachingDemos package to set the user coordinates to match the image (use locator to find the current values of some points). Then you can just use the locator function to get the coordinates of

[R] Variable name as string

2010-10-16 Thread Jan private
Hello, from Verzani, simpleR (pdf), p. 80, I created the following function to test the coefficient of lm() against an arbitrary value. coeff.test - function(lm.result, var, coeffname, value) { # null hypothesis: coeff = value # alternative hypothesis: coeff != value es - resid(lm.result)

Re: [R] A subject related question

2010-10-16 Thread Bill.Venables
Multivariate normal distributions with PSD variance matrices occur all the time. The most common example in practice would probably be the distribution of the vector of residuals from a normal regression. It has a degenerate distribution wrt R^n because it is subject to p linear restrictions.

Re: [R] delete data row

2010-10-16 Thread David Winsemius
On Oct 16, 2010, at 5:45 PM, Joshua Wiley wrote: Jim and David, I certainly agree with your suggestions. How would you implement all.equal()? Since it compares entire objects (and the OP's goal is to remove any rows that equal some value), the only option I saw was to use *apply or a loop.

Re: [R] Variable name as string

2010-10-16 Thread Greg Snow
You can get the name of var by doing coeffname - deparse(substitute(var)) Is that what you wanted? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org

Re: [R] Variable name as string

2010-10-16 Thread Jan private
coeffname - deparse(substitute(var)) Is that what you wanted? Yes! That gets rid of the extra parameter. Thanks __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Evaluating R functions in Java with dynamic input

2010-10-16 Thread lord12
So I have an R function: function = foo(x) { return(x) } In java: I create an Rengine: Rengine re = new Rengine(args,false,new TextConsole()); int blah = 5 re.eval(foo(blah)); I get an error(object blah not found). How do I dynamically evaluate my functions given user input(without hard

Re: [R] convert factor data to numeric

2010-10-16 Thread andreas
I had exactly the same problem with trying to import another .csv file. Turns out that I was working on a german computer that instead of using a comma when I saved it as .csv used a semicolon. Just saved it as a normal excel file, put it on a mates computer and saved it as .csv Worked a treat..

[R] Calling R function in Java that in turn calls a Java function

2010-10-16 Thread lord12
I have a function: call = function() { library(rJava) .jinit(classpath=C:/Documents and Settings/GV/workspace/Test2/bin, parameters=-Xmx512m) blah = .jcall(Test2, D, sum, 2,2) return(blah) } In java I do re.eval(call()) and I get a value of null. If I run the call function directly from R,