Re: [R] How to run R on Emacs+ESS

2010-09-07 Thread Steve Lianoglou
Hi, On Tue, Sep 7, 2010 at 12:39 AM, Stephen Liu sati...@yahoo.com wrote: Hi Steve, Thanks for your advice. Actually, for that to work, the path for your R executable needs to be in emacs' exec-path: http://www.emacswiki.org/emacs/ExecPath appending the /sw/bin directory to the exec-path

Re: [R] two questions

2010-09-07 Thread Iasonas Lamprianou
thanks for the response we are talking about 7 cities. If I run a two-way anova, I find the residuals skewed and non-normal. I'll try the rlm method and see what happens. Thanks to all of you for the support. Dr. Iasonas Lamprianou Assistant Professor (Educational Research and Evaluation)

Re: [R] How to run R on Emacs+ESS

2010-09-07 Thread Steve Lianoglou
On Tue, Sep 7, 2010 at 1:41 AM, Stephen Liu sati...@yahoo.com wrote: Hi Johnathan, Tried, Ctrl-x R Enter The same, no response. No, not ctrl-x r. The previous poster told you to do Alt-x R (where Alt might be option on your keyboard). In emacs-speak, this modifier key (alt/opt) is written

Re: [R] two questions

2010-09-07 Thread Iasonas Lamprianou
By the way, ordinal regression would require huge datasets because my dependent variable has around 20 different responses... but again, one might say that with so many  ordinal responses, it is as if we have a linear/interval variable, right? I just hoped that there would be a two-way

Re: [R] WriteXLS problem

2010-09-07 Thread Kenneth Roy Cabrera Torres
Dears Dejian and David: Thank you for your help. Maybe dataframes2xls package have the same problem. But xlsx take too much time to write it down. Kenneth. El lun, 06-09-2010 a las 20:56 -0400, David Winsemius escribió: On Sep 6, 2010, at 8:09 PM, Dejian Zhao wrote: The maximum number of

Re: [R] Aggregate certain rows in a matrix

2010-09-07 Thread Kennedy
Thank you very much for the help. I decided to go with the 'plyr' package but it is nice to have options. Have a lovely day. -- View this message in context: http://r.789695.n4.nabble.com/Aggregate-certain-rows-in-a-matrix-tp2528454p2529238.html Sent from the R help mailing list archive at

[R] Memory leak in system() command?

2010-09-07 Thread Rob Steele
I run an external program a few hundred times via status - system(command = blah blah blah) and pretty soon Linux thinks R is using tons of memory. R doesn't think so, at least not according to gc(). I'm also opening, reading and closing files but I don't think that's where the problem lies.

Re: [R] two questions

2010-09-07 Thread Dennis Murphy
Hi: On Mon, Sep 6, 2010 at 5:26 PM, juan xiong xiongjuan2...@gmail.com wrote: Maybe Friedman test The Friedman test corresponds to randomized complete block designs, not general two-way classifications. David's advice is sound, but also investigate proportional odds models (e.g., lrm in Prof.

Re: [R] How to run R on Emacs+ESS

2010-09-07 Thread Stephen Liu
Hi Steve, No, not ctrl-x r. The previous poster told you to do Alt-x R I did it before without response. Now I found the trick. I have to hit [Enter] twice (Not once). Then 'R' starts. ?layout n help(layout, htmlhelp = FALSE) : unused argument(s) (htmlhelp = FALSE) (can't start it)

[R] queue implementation?

2010-09-07 Thread raje...@cse.iitm.ac.in
Hi, is there a queue implementation in R? [[alternative HTML version deleted]] __ 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

Re: [R] queue implementation?

2010-09-07 Thread Barry Rowlingson
On Tue, Sep 7, 2010 at 8:11 AM, raje...@cse.iitm.ac.in raje...@cse.iitm.ac.in wrote: Hi, is there a queue implementation in R? Tried RSiteSearch(queue)? There's one in the filehash package that uses on-disk databases, which means it's probably fast and can handle massive data sets.

[R] [R-pkgs] xlsReadWrite v1.5.2

2010-09-07 Thread Hans-Peter Suter
Natively read and write Excel (.xls) files. Supports Windows 32-bit only (atm). A new version has been released: -- changes -- o read.xls - new arguments 'checkNames' - recognize NA values according to a new 'naStrings' argument - recognize NaN values - recognize 'true', 'false' (not

Re: [R] xyplot (Lattice): Group order in display

2010-09-07 Thread Deepayan Sarkar
On Thu, Sep 2, 2010 at 1:28 AM, jrflanders jrfland...@gmail.com wrote: Thank you! It is always so simple... May I throw another question at you? In useOuterStrips, in the latticeExtra package, I am having problems calling custom strip names, e.g. useOuterStrips(xyplot(y-x | LOCATION +

Re: [R] nlme Output

2010-09-07 Thread ONKELINX, Thierry
Dear Eward, I notice that you use group_id both in the fixed effects as in the random effects. Therefore you have no df for the group_id in the fixed effects. So you have two options. Either you are interested in the group effect and then you should switch to a simple lm(). Either you are not

Re: [R] how do I transform this to a for loop

2010-09-07 Thread Karl Brand
I think i've got it: for() is best employed for convenience only; and best NOT employed in computation for which many other approaches/functions are better suited (faster). Many thanks for your comment, Karl On 9/7/2010 12:52 AM, bill.venab...@csiro.au wrote: I have in mind the following

Re: [R] U value from wilcox.test

2010-09-07 Thread Chloe
Sorry that I did not answer you earlier, I would like to thank you again for your advice and the time you dedicated to my problem. In my case it was not possible to increase the sample size but I would take your advice into account for the next sampling and also for presenting these results!

Re: [R] Over lay 2 scale in same plot

2010-09-07 Thread Jim Lemon
On 09/07/2010 02:57 AM, mamunbabu2001 wrote: Hi Everyone, I have two different data set in 2 different scale. I want to plot these two data in the same plot in their respective scale. So the plot will have 2 different scale. I have added an image below to show how it should look. does any bode

Re: [R] Help with unexpected symbol errors

2010-09-07 Thread Jim Lemon
On 09/07/2010 06:42 AM, Amit Patel wrote: Hi I have got a long script which will not run for me as i keep getting errors : source(clusterfixV1_4.r) Error in source(clusterfixV1_4.r) : clusterfixV1_4.r: unexpected symbol at 158: eck[k,2]- as.numeric(1) 159:

[R] Can Cairo do better?

2010-09-07 Thread r-help
|Hi R-users, I have used the Cairo package to create graphics on a headless system running R 2.9.2 without build-in support for cairo. The results are a bit disappointing compared to using the GDD package, although the R documentation recommends Cairo over GDD, because it has better

Re: [R] Memory leak in system() command?

2010-09-07 Thread Duncan Murdoch
Rob Steele wrote: I run an external program a few hundred times via status - system(command = blah blah blah) and pretty soon Linux thinks R is using tons of memory. R doesn't think so, at least not according to gc(). I'm also opening, reading and closing files but I don't think that's where

[R] own distance

2010-09-07 Thread Karen Sargsyan
Is it possible to implement my own distance and mean for k-means clustering for any clustering package in R? Just looking for simple way, without creating a new package. karsar __ R-help@r-project.org mailing list

Re: [R] own distance

2010-09-07 Thread Christian Hennig
The kmeans function doesn't accept a distance object or distance matrix as input (which you can of course generate from your own definition), but pam in package cluster does. (Note that the term k-means refers to cluster mean vectors, which can only computed from a cases*variables data matrix,

[R] slow socket read in R?

2010-09-07 Thread raje...@cse.iitm.ac.in
Hi, I have a server(written in C++) that is continuously sending data through a socket(the server does some processing between sends). When I receive the data through a client written in R, the receive is slower than the send of the server even if I'm just receiving at the client and not

[R] Percentile rank for each element in list

2010-09-07 Thread mic
Hlp Given this data x - c(1,5,100,300,250,200,550,900,1000) quantile(x) 0% 25% 50% 75% 100% 1 100 250 550 1000 When I run the quantile, I can only know the value of the nth percentile I want to know what's the percentile position of each items in the list Sample 1 = 100% on the

[R] R package to identify model

2010-09-07 Thread netrunner
Dear all, I would like to know if there is a R package performing model identification? thank you! -- View this message in context: http://r.789695.n4.nabble.com/R-package-to-identify-model-tp2529525p2529525.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] own distance

2010-09-07 Thread Gavin Simpson
On Tue, 2010-09-07 at 12:16 +0100, Christian Hennig wrote: The kmeans function doesn't accept a distance object or distance matrix as input (which you can of course generate from your own definition), but pam in package cluster does. (Note that the term k-means refers to cluster mean

Re: [R] Regarding naive baysian classifier in R

2010-09-07 Thread Vishnampettai
My question was is there any other function similar to attr in naive Bayesian that can be used to display the probability values? -- View this message in context: http://r.789695.n4.nabble.com/Regarding-naive-baysian-classifier-in-R-tp2400727p2529535.html Sent from the R help mailing list

[R] Help with repeating values in a column of dataframe in R on a random pattern- reg

2010-09-07 Thread Vijayan Padmanabhan
Dear Group I have to populate a column in a R dataframe containing say 99 rows, where for every 3 row one row (randomly determined) of the column should take the value 1 and the other 2 row of that column should take the value 0. I used the command

Re: [R] calculating area between plot lines

2010-09-07 Thread Hans W Borchers
A. Marcia BARBOSA anamarciabarbosa at gmail.com writes: Hi everyone. I have these data: probClass-seq(0,0.9,0.1) prob1-c(0.0070,0.0911,0.1973,0.2949,0.3936,0.5030,0.5985,0.6869,0.7820,0.8822) prob2-c(0.0066,0.0791,0.2358,0.3478,0.3714,0.3860,0.6667,0.6400,0.7000,1.) # which I'm

Re: [R] Help with repeating values in a column of dataframe in R on a random pattern- reg

2010-09-07 Thread jim holtman
I think you want to use replicate: replicate(33, sample(c(0,0,1),3)) On Tue, Sep 7, 2010 at 7:37 AM, Vijayan Padmanabhan v.padmanab...@itc.in wrote: Dear Group I have to populate a column in a R dataframe containing say 99 rows, where for every 3 row one row (randomly determined) of the

Re: [R] Percentile rank for each element in list

2010-09-07 Thread Ista Zahn
Hi, I think you want ecdf(), but read the help page because it works a little different than you might expect. ecdf.x - ecdf(x) ecdf.x(x) Best, Ista On Tue, Sep 7, 2010 at 8:37 AM, mic mikezia...@gmail.com wrote: Hlp Given this data  x - c(1,5,100,300,250,200,550,900,1000) quantile(x)

Re: [R] WriteXLS problem

2010-09-07 Thread Marc Schwartz
Hi, Apologies for coming to this thread late, but I just got the posts early this morning, so there was a delay in receipt for some reason. As per the other comments, there is a limit in Excel 2003 of 64k rows and as far as I can tell from MS' own specs, that has not changed:

Re: [R] Plotting multiple edges with iGraph

2010-09-07 Thread Gábor Csárdi
Hi Sasha, see the edge.curved graphical parameter and this message for some examples: http://lists.gnu.org/archive/html/igraph-help/2009-03/msg00170.html Best, Gabor On Sun, Sep 5, 2010 at 7:41 PM, sashaBsAs dietrich...@gmail.com wrote: Hello, I am working with the igraph package and I am

[R] minor diagonal in R

2010-09-07 Thread Trafim Vanishek
Dear all, seems that easy question but cannot find the function for that. How to get the elements of the minor diagonal of the matrix? Thanks a lot. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] minor diagonal in R

2010-09-07 Thread Peng, C
This this what you want? A=matrix(1:16,ncol=4) A [,1] [,2] [,3] [,4] [1,]159 13 [2,]26 10 14 [3,]37 11 15 [4,]48 12 16 diag(A[1:4,4:1]) [1] 13 10 7 4 -- View this message in context:

[R] Problems in snow: can't open connection with nodes

2010-09-07 Thread bfoubert
I'm working with snow and created a local cluster. So far, the same code has always worked (please see below). However, now I receive a message that the connection with the nodes cannot be opened. I restarted my workstation but that didn't help. Is there a known solution for this problem? Thanks

Re: [R] minor diagonal in R

2010-09-07 Thread Berwin A Turlach
On Tue, 7 Sep 2010 06:26:09 -0700 (PDT) Peng, C cpeng@gmail.com wrote: This this what you want? A=matrix(1:16,ncol=4) A [,1] [,2] [,3] [,4] [1,]159 13 [2,]26 10 14 [3,]37 11 15 [4,]48 12 16 diag(A[1:4,4:1]) [1] 13 10 7

Re: [R] R package to identify model

2010-09-07 Thread Bert Gunter
Another task for the ESP package? Bert Gunter Genentech Nonclinical Statistics On Tue, Sep 7, 2010 at 4:29 AM, netrunner giovanna.va...@gmail.com wrote: Dear all, I would like to know if there is a R package performing model identification? thank you! -- View this message in context:

Re: [R] minor diagonal in R

2010-09-07 Thread Gabor Grothendieck
On Tue, Sep 7, 2010 at 9:09 AM, Trafim Vanishek rdapam...@gmail.com wrote: Dear all, seems that easy question but cannot find the function for that. How to get the elements of the minor diagonal of the matrix? Here are a few possibilities: # test matrix x - matrix(1:16, 4) # 1 diag(x[,

Re: [R] Percentile rank for each element in list

2010-09-07 Thread Peng, C
Is this what you want to have: x - c(1,5,100,300,250,200,550,900,1000) # assume you want the position of 25th percentile which(x==quantile(x,0.25)) [1] 3 Note that position is meaningful only when the percentile is one of the observed data values. If you want to know the position of 70th

Re: [R] minor diagonal in R

2010-09-07 Thread Peng, C
diag has 4 letters cbind has 5 letters :) -- View this message in context: http://r.789695.n4.nabble.com/minor-diagonal-in-R-tp2529676p2529746.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] R package to identify model

2010-09-07 Thread Peng, C
what is ESP package? Thanks. -- View this message in context: http://r.789695.n4.nabble.com/R-package-to-identify-model-tp2529525p2529766.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] R package to identify model

2010-09-07 Thread Ken Knoblauch
Peng, C cpeng.usm at gmail.com writes: what is ESP package? Thanks. I've heard that It's only available over from a repository accessible through a next-generation wifi system call oui-ja. (Beware humor travels poorly over the internet and across linguistic differences!).

[R] Problem with X11 device through screen over ssh within Emacs

2010-09-07 Thread Simon White
Dear R-help, This is a bit of a long tale, involving R, Emacs, Screen and ssh. I connect to our linux server for running R from my linux machine. On our server, I use GNU Screen to keep persistent sessions. Recently, I logged into the server using ssh u...@server but forgot to include the -X

Re: [R] queue implementation?

2010-09-07 Thread Spencer Graves
I don't know what you mean by a queue implementation, but consider the following: install.packages('sos') # if you don't have it already library(sos) qu - ???queue # to search for help pages matching the search term #found 29 matches; retrieving 2 pages summary(qu) # in 12 packages qu

Re: [R] Over lay 2 scale in same plot

2010-09-07 Thread Peng, C
Modified from Josh's code: Is this you want to see? barplot(-50:50) # add points into the existing plot at the coordinates set by x and y # and use a line to connect them points(x = 1:101, y = seq(from = 30, to = -20, length.out = 101), type = l) # add right hand side axis

Re: [R] queue implementation?

2010-09-07 Thread Barry Rowlingson
On Tue, Sep 7, 2010 at 3:26 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote:       I don't know what you mean by a queue implementation, but consider the following: A queue is a FIFO data structure - the basic operations are to add an item to the queue and to remove an item

Re: [R] Problems in snow: can't open connection with nodes

2010-09-07 Thread Abhijit Dasgupta
This is a problem a few of us have experienced with snow, and there is a discussion on the R-hpc list about this. No solution yet, as far as I can tell. Abhijit On 9/7/2010 9:18 AM, bfoubert wrote: I'm working with snow and created a local cluster. So far, the same code has always worked

[R] Something similar to layout in lattice or ggplot

2010-09-07 Thread Abhijit Dasgupta
Hi, Is there a function similar to the layout function in base graphics in either lattice or ggplot? I'm hoping someone has written a function wrapper to the appropriate commands in grid that would make this easier :) Abhijit [[alternative HTML version deleted]]

[R] question on optim

2010-09-07 Thread Hey Sky
Hey, R users I do not know how to describe my question. I am a new user for R and write the following code for a dynamic labor economics model and use OPTIM to get optimizations and parameter values. the following code does not work due to the equation:   

Re: [R] U value from wilcox.test

2010-09-07 Thread Peng, C
In addition to Cedric's comments, these are large sample procedures. Your sample sizes are two small. I don't think any procedures using normal approximations are inappropriate for your case. I would suggest making a reasonable distribution on the populations to avoid asymptotic results. -- View

Re: [R] Something similar to layout in lattice or ggplot

2010-09-07 Thread ONKELINX, Thierry
Dear Abhijit, In ggplot you can use facetting (facet_grid() or facet_wrap()) to create subplot based on the same dataset. Or you can work with viewport() if you want several independent plots. HTH, Thierry ir.

Re: [R] R package to identify model

2010-09-07 Thread Ben Bolker
Ken Knoblauch ken.knoblauch at inserm.fr writes: Peng, C cpeng.usm at gmail.com writes: what is ESP package? Thanks. I've heard that It's only available over from a repository accessible through a next-generation wifi system call oui-ja. (Beware humor travels poorly over the

Re: [R] Something similar to layout in lattice or ggplot

2010-09-07 Thread Abhijit Dasgupta, PhD
Hi Thierry, It's really the latter I want..independent plots. I use faceting quite a bit, but I need things like a page of plots for simulations under different conditions. I suppose I can still use faceting combined with reshape, but I'd rather not go that route if I can help it. Abhijit

[R] Saving fits (glm, nls) without data

2010-09-07 Thread Johann Hibschman
Is there any package that assists in saving and reconstituting glm and nls fits without bringing along the accompanying data? A quick search on CRAN didn't turn up anything. If not, how do other people deal with saving the coefficients of model fits? For example, I've run a glm fit that has 23

Re: [R] xyplot (Lattice): Group order in display

2010-09-07 Thread jrflanders
Yes, event was coded as an integer. As I said, always something simple. I'm learning. By the way, I cited lattice in my recent paper in Applied Geochemistry. Thank you for your work. On Sep 7, 2010 1:32am, Deepayan Sarkar [via R] ml-node+2529337-897621538-57...@n4.nabble.com wrote: On

[R] How do u create a virtual map?

2010-09-07 Thread Alaios
Hello everyone. I would like to simulate a small map area and store information regarding it. I am trying to find out what might be the best way to do that and I need some feedback, as you might be more experienced. Usually a map can be described by a k * m dimensions matrix where every cell

Re: [R] question on quot;optimquot;

2010-09-07 Thread Ben Bolker
Hey Sky heyskywalker at yahoo.com writes: I do not know how to describe my question. I am a new user for R and write the following code for a dynamic labor economics model and use OPTIM to get optimizations and parameter values. the following code does not work due to the equation:   

Re: [R] Something similar to layout in lattice or ggplot

2010-09-07 Thread Erik Iverson
See ?grid.layout or perhaps ?arrange from the gridExtra package. Abhijit Dasgupta wrote: Hi, Is there a function similar to the layout function in base graphics in either lattice or ggplot? I'm hoping someone has written a function wrapper to the appropriate commands in grid that would make

Re: [R] question on optim

2010-09-07 Thread Hey Sky
sorry. there is a type in the following code. there is no w[5]*acwrk[,i] in the regw equation. the right one should be as following:    regw[,i]-w[1]+ w[2]*eta[m]+exp(w[3]+w[4]*eta[m])*actr[,i]   - Original Message From: Hey Sky heyskywal...@yahoo.com To: R r-help@r-project.org

[R] Open position at Merck (NJ, USA)

2010-09-07 Thread Liaw, Andy
Job description: Computational statistician/biometrician The Biometrics Research Department at Merck Research Laboratories, Merck Co., Inc. in Rahway, NJ, is seeking a highly motivated statistician/data analyst to work in its basic research, drug discovery, preclinical and early clinical

Re: [R] Something similar to layout in lattice or ggplot

2010-09-07 Thread baptiste auguie
On 7 September 2010 17:19, Erik Iverson er...@ccbr.umn.edu wrote: See ?grid.layout or perhaps ?arrange from the gridExtra package. gridExtra::grid.arrange(), rather. baptiste Abhijit Dasgupta wrote: Hi, Is there a function similar to the layout function in base graphics in either lattice

Re: [R] Saving fits (glm, nls) without data

2010-09-07 Thread David Winsemius
On Sep 7, 2010, at 11:02 AM, Johann Hibschman wrote: Is there any package that assists in saving and reconstituting glm and nls fits without bringing along the accompanying data? A quick search on CRAN didn't turn up anything. If not, how do other people deal with saving the coefficients of

Re: [R] question on optim

2010-09-07 Thread Ravi Varadhan
Hi, I do not see how `data' is used in your objective function. The objective function is not even evaluable at the initial guess. myfunc1(guess, mydata) [1] NaN I also think that some of the parameters may have to be constrained, for example, par[1] 0. At a minimum, make sure that the

Re: [R] Something similar to layout in lattice or ggplot

2010-09-07 Thread Erik Iverson
baptiste auguie wrote: On 7 September 2010 17:19, Erik Iverson er...@ccbr.umn.edu wrote: See ?grid.layout or perhaps ?arrange from the gridExtra package. gridExtra::grid.arrange(), rather. Do I have an old version of gridExtra? I have ?arrange: arrange package:gridExtra

Re: [R] Help on write.xlsx library(xlsx)

2010-09-07 Thread Adrian Dragulescu
Hi, append=TRUE is supposed to work for appending new sheets to an existing spreadsheet. That is the most common use. I'll improve the documentation of write.xlsx. If you want to append to an existing sheet, you have two choices: 1) remove the sheet first, and than write it again with the

[R] Display R graphics windows in second monitor

2010-09-07 Thread Gunnar Carnwath
Greetings, I would like to display the R graphics window on one monitor of my computer while simultaneously working with the R console and multiple script windows in another monitor. Is this possible? I know I can use Tinn R or something similar but I would prefer not to use these secondary

Re: [R] Memory leak in system() command?

2010-09-07 Thread Rob Steele
You're quite right; the problem lies in an SQL query (LOAD DATA INFILE). Thanks! On 9/7/2010 6:50 AM, Duncan Murdoch wrote: Rob Steele wrote: I run an external program a few hundred times via status - system(command = blah blah blah) and pretty soon Linux thinks R is using tons of memory.

[R] boundary correction - univariate kernel density estimation

2010-09-07 Thread sbillin2
Hey, Does anyone know of a package in R that provides univariate kernel density estimation with boundary correction ? or how to easily extend an existing bivariate kernel density estimation function (e.g. lambdahat in the spatialkernel package) with boundary corrections to allow univariate

Re: [R] Display R graphics windows in second monitor

2010-09-07 Thread Erik Iverson
See ?X11 for an example if you're using X, but I'm guessing you're not. It looks like ?windows might have some useful information about setting the default positions for Windows users, see xpos and ypos argument description. Gunnar Carnwath wrote: Greetings, I would like to display the R

Re: [R] Something similar to layout in lattice or ggplot

2010-09-07 Thread baptiste auguie
arrange() was renamed grid.arrange() when plyr started using this name for a different function. I think it happened in version 0.6.5 of gridExtra. The current version on CRAN is 0.7. baptiste On 7 September 2010 17:46, Erik Iverson er...@ccbr.umn.edu wrote: baptiste auguie wrote: On 7

Re: [R] Display R graphics windows in second monitor

2010-09-07 Thread RICHARD M. HEIBERGER
If you are on windows, and running manually, then just draw any plot to create the graphics window and then drag the window to the other monitor. Rich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] boundary correction - univariate kernel density estimation

2010-09-07 Thread David Winsemius
On Sep 7, 2010, at 12:04 PM, sbillin2 wrote: Hey, Does anyone know of a package in R that provides univariate kernel density estimation with boundary correction ? What? you don't believe that tunneling occurs at finite barriers? or how to easily extend an existing bivariate kernel

Re: [R] Saving fits (glm, nls) without data

2010-09-07 Thread Dennis Murphy
Hi: If all you want are the coefficients and covariance matrix from a glm fit, use coef(model) to extract the coefficients (as David mentioned) summary(model)$cov.unscaledto get the unscaled covariance matrix of the coefficients. [and summary(model)$cov.scaledfor the covariance

[R] Plotting longitudinal data

2010-09-07 Thread Jukka Koskela
Hello, Hope that someone could help me plotting longitudinal data below: 7213330001 0.8300 13.05.091 1 330001 0.8700 09.02.05NULL 4797330001 0.7700 21.03.07NULL 2399330001 0.7800 12.04.06NULL 2400

[R] AHRQ - Creation of Comorbidity Variables

2010-09-07 Thread GL
If there are any other users who use AHRQ's SAS code comoanaly2010 and comformat2010 to create comorbidity variables, I thought you might be interested in the following PRELIM code we wrote to mimic its functionality in R. It seems to yield similar results, but may contain errors. Please feel

Re: [R] R package to identify model

2010-09-07 Thread Greg Snow
I think that I am the one to blame for the first references to the possibility of an ESP package on this list (though I picked up the idea from the perl.misc newsgroup). ESP is the acronym for Extra Sensory Perception which is the pseudoscience dealing with people supposedly being able predict

[R] a^c(1:3)

2010-09-07 Thread Feng Li
Dear R, I have two small questions confused me recently. Now assume I have a matrix a, like this, a - matrix(1:6, 2, 3) a [,1] [,2] [,3] [1,]135 [2,]246 I sometimes need each row of a raised to a different exponent. So I do a trick like this, a^c(2, 3) [,1]

Re: [R] Display R graphics windows in second monitor

2010-09-07 Thread Greg Snow
What operating system are you using and how do you run R within that OS? -- 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 [mailto:r-help-boun...@r- project.org] On

Re: [R] Percentile rank for each element in list

2010-09-07 Thread Arun.stat
Otherwise you can try following: x - c(1,5,100,300,250,200,550,900,1000) which(x==quantile(x,0.25,type=3)) This will always return number within your vector. See further information with ?'quantile' Thanks and regards, -- View this message in context:

Re: [R] Something similar to layout in lattice or ggplot

2010-09-07 Thread Greg Snow
For lattice graphics look at ?print.trellis and pay particular attention to the position, split, and more arguments, also look at the examples on that page. The interface is a bit different from layout, but it allows for multiple independent plots on the same page. -- Gregory (Greg) L. Snow

Re: [R] a^c(1:3)

2010-09-07 Thread Dimitris Rizopoulos
^ is vectorized operator, so a^c(2,3) is essentially the same as a^rep(c(2,3), length.out = length(a)) which is c(a)^rep(c(2,3), length.out = length(a)) but put back in a matrix format (i.e., with rows and columns). Now, if you want each column in different power, you need to explicitly

Re: [R] a^c(1:3)

2010-09-07 Thread Erik Iverson
Feng, Hello, all of this behavior comes down to argument recycling. Feng Li wrote: Dear R, I have two small questions confused me recently. Now assume I have a matrix a, like this, a - matrix(1:6, 2, 3) a [,1] [,2] [,3] [1,]135 [2,]246 I sometimes need each

Re: [R] a^c(1:3)

2010-09-07 Thread David Winsemius
On Sep 7, 2010, at 12:35 PM, Feng Li wrote: Dear R, I have two small questions confused me recently. Now assume I have a matrix a, like this, a - matrix(1:6, 2, 3) a [,1] [,2] [,3] [1,]135 [2,]246 I sometimes need each row of a raised to a different

Re: [R] Display R graphics windows in second monitor

2010-09-07 Thread Greg Snow
I assume that you are using the GUI version then. There are a couple of ways you can do this. 1. With R running click on the Edit menu, then on GUI preferences and a new dialog box will pop up. At the top choose the SDI radio button. Save the settings, quit R and restart. Now every window

[R] average columns of data frame corresponding to replicates

2010-09-07 Thread Juliet Hannah
Hi Group, I have a data frame below. Within this data frame there are samples (columns) that are measured more than once. Samples are indicated by idx. So id1 is present in columns 1, 3, and 5. Not every id is repeated. I would like to create a new data frame so that the repeated ids are

Re: [R] Display R graphics windows in second monitor

2010-09-07 Thread Gunnar Carnwath
I am using Windows 7 and installed R using all the default settings.   Gunnar Carnwath PhD Candidate, University of Montana College of Forestry and Conservation 509.675.1540 From:

[R] rscaleUsage Function

2010-09-07 Thread Ziad.Elmously
To Whom It May Concern, In using the Bayesm package titled rscaleUsage, it does not reports mudraw, taudramw, sigmadraw, Lambdadraw, and edraw. However, it does not report the transformed y ratings or latent z scores. Is there any way to infer the value for y and z? Ziad Elmously |

[R] R cannot be started

2010-09-07 Thread Tao
I used Rtools for installing a package under Windows XP. I used commands like R CMD INSTALL (build, check) in the CMD window. It worked well until I found that my revised package can be updated with R CMD INSTALL. After I restarted my computer, R cannot be started any more. I double click the R

Re: [R] Plotting longitudinal data

2010-09-07 Thread Dennis Murphy
Hi: There are several problems; see inline. On Tue, Sep 7, 2010 at 9:27 AM, Jukka Koskela jukka.kosk...@helsinki.fiwrote: Hello, Hope that someone could help me plotting longitudinal data below: Firstly, you want to use NA in place of NULL as the missing value code. This is easy to change

Re: [R] Percentile rank for each element in list

2010-09-07 Thread Peng, C
It seems to produce some strange values: xx=1:10 which(xx==quantile(x,0.2,type=3)) [1] 5 which(xx==quantile(x,0.5,type=3)) integer(0) -- View this message in context: http://r.789695.n4.nabble.com/Percentile-rank-for-each-element-in-list-tp2529523p2530060.html Sent from the R help mailing

[R] remove accents in strings

2010-09-07 Thread lamack lamack
Dear all, there is a R function to remove all accents in strings? best regards. JL [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] some questions about longitudinal study with baseline

2010-09-07 Thread array chip
Hi all, I asked this before the holiday, didn't get any response. So would like to resend the message, hope to get any fresh attention. Since this is not purely lme technical question, so I also cc-ed R general mailing list, hope to get some suggestions from there as well. I asked some

Re: [R] path analysis

2010-09-07 Thread JLucke
There are three paths to path analysis in R: the SEM package; the LAVAAN package; and the OpenMx approach. The first two are R programs. The last accesses the program OpenMx. Guy rotem rottem...@gmail.com Sent by: r-help-boun...@r-project.org 09/06/2010 10:37 AM To r-help@r-project.org

Re: [R] Plotting longitudinal data

2010-09-07 Thread Joshua Wiley
Hi, Reading in (and slightly editing your data, so that patient_id is a factor, and the date is class date). Results of dput() provided for others' benefit. dat - structure(list(V1 = c(7213, 1, 4797, 2399, 2400, 7230, 2, 4798, 4799, 2401, 3, 7233, 4, 4800, 2402, 7258), patient_id =

Re: [R] Display R graphics windows in second monitor

2010-09-07 Thread Gunnar Carnwath
Perfect, Thanks! From: Greg Snow greg.s...@imail.org r-help@r-project.org Sent: Tue, September 7, 2010 10:54:25 AM Subject: RE: [R] Display R graphics windows in second monitor I assume that you are using the GUI version then.  There are a couple of ways

[R] TukeyHSD responses in R

2010-09-07 Thread adriana1986
Hi All, Does anyone know how to get contrast statements or an output similar to TukeyHSD when doing survival analysis with the coxph function? Thanks, Adriana -- View this message in context: http://r.789695.n4.nabble.com/TukeyHSD-responses-in-R-tp2530120p2530120.html Sent from the R help

Re: [R] R program google search

2010-09-07 Thread Waverley @ Palo Alto
Hi, I have sent some request as how to embed the Google search API in R? I remember on one mailing list people talked about this previously using R. I did some analysis on this and found that google API (SOAP based) has retired and was replaced with the AJAX search API. I found the following

Re: [R] remove accents in strings

2010-09-07 Thread Matt Shotwell
If you know the encoding of the string, or if its encoding is the current locale encoding, then you can use the iconv function to convert the string to ASCII. Something like: iconv(accented.string, to=ASCII//TRANSLIT) While 7-bit ASCII does not permit accented characters, extended (8-bit) ASCII

Re: [R] a^c(1:3)

2010-09-07 Thread Feng Li
Very fruitful, thanks all of you:) Feng [[alternative HTML version deleted]] __ 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

  1   2   >