[R] Unique Values per Column

2012-07-20 Thread Bert Jacobs
Hi, I was wondering what the best way is to create a new dataframe based on an existing dataframe with only the unique available levels for each column (22 columns in total) in it. If some columns have less unique values than others, then those columns can be filled with blanks for the remaining

[R] Recomendation on data management problem

2012-07-20 Thread jose Bartolomei
Dear R users, I am dealing with a data set of aprox. 5 millions rows with data inconsistencies. The data.frame is an observation per claim with approximately 2 M unique ID's Furthermore, one individual could have one or more claims. I have found that an individual could have all

Re: [R] function for inverse normal transformation

2012-07-20 Thread Bert Gunter
The nature of her inquiries suggests to me that Carol strongly needs to consult a local statistician rather than fooling around with this list. -- Bert On Fri, Jul 20, 2012 at 11:56 AM, John Fox j...@mcmaster.ca wrote: Dear Carol, -Original Message- From: carol white

[R] robust polr

2012-07-20 Thread Anthony Dick
Hello, I am wondering if there is a robust estimation version of polr(), similar to the lm() - rlm(). If not, can anyone suggest a way to do robust estimation with polr()? Thanks, Anthony -- Anthony Steven Dick, Ph.D. Assistant Professor Director, Developmental Science Program Department

Re: [R] R packages installation error in Ubuntu

2012-07-20 Thread R. Michael Weylandt
On Fri, Jul 20, 2012 at 12:38 PM, uday uday_143...@hotmail.com wrote: hi , last time I did not mention the specific version of linux and it was problem with only syntax but with correction I got new error. Nope -- you still have the same error Sarah responded to. It is apt-get for Ubuntu (I

[R] Control y axis

2012-07-20 Thread stefaniewind
I can't get the y axis to extend the full range that I need, which is -8 to 8 Here's my code. I tried using ylim, but it's still truncating at the extremes in my data. plot(x, y, type =o, xlab=Panelist, ylab=T value,lwd=1.5,lty=1) xlim=range(1:14),ylim=range(-8:8), las=1) Any suggestions?

[R] About R and text mining

2012-07-20 Thread Jennifer Maldonado
Hello, Anyone know if R can read others format like the format.freeling here the software: http://gramatica.usc.es/pln/tools/freeling.html I want create a corpus with this format, or ¿ the best way is read from a plain text? thanks in advanced. Greetings Jenn. [[alternative HTML

Re: [R] Speeding up a loop

2012-07-20 Thread Richard M. Heiberger
whoops, backwards new.x - x[!remove.set,] On Fri, Jul 20, 2012 at 2:51 PM, Richard M. Heiberger r...@temple.eduwrote: This works to multiply the ith row of a by the ith value of b. It might be what you can use a - matrix(1:30, 6, 5) b - 1:6 a a*b To simplify your code, I think you

[R] GOstats: get genes for corresponding enriched GO term

2012-07-20 Thread Lan Sky
Hi, I used GOstats to perform enrichment test on a set of genes (20). There are 7 GO terms with pvalue less than cuttoff and therefore shown in the result table. How can I get the information that which gene in the input gene set belong to which GO term of these enriched GO terms? Thanks for

[R] Reading Shapefiles

2012-07-20 Thread olemissrebs1123
I am attempting to write what MATLAB does as : [S,A]= shaperead() which returns an N by 1 geographic array structure S containing geometric information, and a paralell N by 1 attribute structure array, A containing feature attribute information. How can this be done with R code I tried using

[R] FIML using lavaan returns zeroes for coefficients

2012-07-20 Thread Andrew Miles
Hello! I am trying to reproduce (for a publication) analyses that I ran several months ago using lavaan, I'm not sure which version, probably 0.4-12. A sample model is given below: pathmod='mh30days.log.w2 ~ mh30days.log + joingroup + leavegroup + alwaysgroup + grp.partic.w2 + black + age +

Re: [R] Control y axis

2012-07-20 Thread Richard M. Heiberger
it is a typo you sent plot(x, y, type =o, xlab=Panelist, ylab=T value,lwd=1.5,lty=1) xlim=range(1:14),ylim=range(-8:8), las=1) it should have been plot(x, y, type =o, xlab=Panelist, ylab=T value,lwd=1.5,lty=1, xlim=range(1:14),ylim=range(-8:8), las=1) On Fri, Jul 20, 2012 at 3:29 PM,

Re: [R] conditional subset and reorder dataframe rows

2012-07-20 Thread arun
Hi, I guess the ' +' strand was already ordered in the mapping set while '-' was not ordered. Try this:   test2-mapping[with(mapping,rev(order(Chr.From))),]  rownames(test2)-1:nrow(test2)  test2   Probe.Set.Name Chr Chr.Strand  Chr.From Probe.X Probe.Y 1  ENSMUSG0047459_at   2   

[R] fitting Ornstein-Uhlenbeck process by MAXIMUM LIKELYHOOD

2012-07-20 Thread cesare orsini
Dear friends i am trying to fit an Ornstein-Uhlenbeck process by MAXIMUM LIKELYHOOD method. i found these formulas on http://www.sitmo.com/article/calibrating-the-ornstein-uhlenbeck-model/ this is the mean-reverting process http://r.789695.n4.nabble.com/file/n4637271/process.txt process.txt

[R] changing cex pointwise in lattice

2012-07-20 Thread José M. Blanco Moreno
Dear R-users, I have tried, and I imagine it should be somewhere in the lines of passing extra arguments to the panel function, but does anyone know how to change the character expansion factor that is affecting an individual point in each of the panels of a lattice plot? I have tried to pass

Re: [R] Reading Shapefiles

2012-07-20 Thread Michael Sumner
On Saturday, July 21, 2012, olemissrebs1123 wrote: I am attempting to write what MATLAB does as : [S,A]= shaperead() which returns an N by 1 geographic array structure S containing geometric information, and a paralell N by 1 attribute structure array, A containing feature attribute

Re: [R] changing cex pointwise in lattice

2012-07-20 Thread Peter Ehlers
Using dput() is a good idea, but is the included dataset really a _minimal_ set to illustrate your problem? Peter Ehlers On 2012-07-20 18:00, José M. Blanco Moreno wrote: Dear R-users, I have tried, and I imagine it should be somewhere in the lines of passing extra arguments to the panel

Re: [R] changing cex pointwise in lattice

2012-07-20 Thread Peter Ehlers
Sorry, I had meant to include the following line: Try: xyplot(y~x|group,cex=dd$z,data=dd) Peter Ehlers On 2012-07-20 18:00, José M. Blanco Moreno wrote: Dear R-users, I have tried, and I imagine it should be somewhere in the lines of passing extra arguments to the panel function, but does

Re: [R] changing cex pointwise in lattice

2012-07-20 Thread José M. Blanco Moreno
Sorry about that, when I asked before I meant that I had tried your proposed syntax. That has a problem, and it is that it uses the same set of values for the character expansion *for both groups*, and it is not what I wanted to do. If you plot the data (now a reduced set! sorry!) you'll see that

[R] R and Hadoop or RHipe

2012-07-20 Thread Erin Hodgess
Dear R People: Could someone recommend a reference for R and Hadoop or Rhipe, please? Thanks so much! Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodg...@gmail.com

[R] library XML in R version 2.15.1

2012-07-20 Thread Santosh
Hello Rxperts.. I have a peculiar situation.. XML library is not available with R2.15.1 whereas I was able to install it with R version 2.13.1. Would highly appreciate your suggestions. I am now trying to see if XML works with previous versions of R. Thanks, Santosh [[alternative HTML

Re: [R] library XML in R version 2.15.1

2012-07-20 Thread Santosh
Thanks for your response. I tried R.2.15 also and just tried R.14.1 in 32-bit Windows Vista. Below is the error message I received. install.packages(XML) Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ‘XML’ is not available (for R version 2.14.1) Santosh

Re: [R] library XML in R version 2.15.1

2012-07-20 Thread Santosh
Does not seem to be a good day for me! I am trying to install recent versions of R in Windows Vista. I got the earlier described errors in 2.14.1 and 2.15.1 I tried to install R2.15.1 I get this error now... --- Error --- C:\Program

Re: [R] robust polr

2012-07-20 Thread Prof Brian Ripley
On 20/07/2012 22:06, Anthony Dick wrote: Hello, I am wondering if there is a robust estimation version of polr(), similar to the lm() - rlm(). If not, can anyone suggest a way to do robust estimation with polr()? Thanks, Anthony No: What would it mean to have a long-tailed distribution of a

Re: [R] library XML in R version 2.15.1

2012-07-20 Thread Santosh
Thanks for your response! Yes, I uninstalled previous versions this time. Earlier I used to run multiple versions of R without problems. I was finally able to install XML in the Windows Vista R version 2.14.2. I have not been able to install in R 2.15.x versions. Santosh On Fri, Jul 20, 2012 at

Re: [R] library XML in R version 2.15.1

2012-07-20 Thread Jeff Newmiller
sounds like you downloaded corrupt files. This may be due to corruption on the server, but more likely is due to whatever program you used to download the installer. Try downloading from a different server and/or using a different browser?

<    1   2