[R] Finding best cut points to discretize continuous values for ID3 algorithm

2014-04-17 Thread Furkan Gürsoy
Hi all, I am a senior student of MIS department at Bogazici University, Istanbul. My graduation project's focus is on data mining using R. I would like to write a function which takes find best(or near to best) cut points to discretize continuous values to minimize the conditional entropy based

[R] Fontconfig error in R 3.10 when running

2014-04-17 Thread Yue Li
Dear List, After updating to R 3.10 and Bioconductor 2.14, I'm having a rather frustrating error whenever I try using function like cairo_ps to save eps figures as demonstrated in the following example: cairo_ps('test.eps') plot(c(1:10),c(1:10)) Fontconfig error: Cannot load default config

[R] graph: add 2 inches on the left outer region, but keep everything unchanged

2014-04-17 Thread Xing Zhao
Hi R experts, My original graph was plotted, and for some reason, I need to add extra '2' inches on the left side. Meanwhile, I want to keep everything unchanged. Particularly, the length-width ratio for each panel of the original graph is nice, therefore I want to keep the original ratio Adding

Re: [R] Exclude rows by criteria

2014-04-17 Thread arun
Hi, May be this helps: set.seed(49) dat1 - data.frame(group=factor(sample(4,20,replace=TRUE)), year=factor(sample(2003:2014,20,replace=TRUE))) indx - with(dat1, as.numeric(as.character(year)) =2007 | as.numeric(as.character(year)) 2012 ) with(dat1[!indx,],chisq.test(group,year)) A.K. I am

Re: [R] ggplot2: using coord_trans for logit - probability

2014-04-17 Thread ONKELINX, Thierry
Dear Michael, You can use geom_smooth directly. ggplot(pred, aes(x = Age, y = Better)) + geom_smooth(method = glm, family = binomial) Best regards, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie Kwaliteitszorg /

Re: [R] interpreting weight in meta-analysis of proportion

2014-04-17 Thread Michael Dewey
At 16:30 16/04/2014, petre...@unina.it wrote: Dear all, I use R 3.0 for Windows. I performed a meta-analysis of the prevalence (single proportion) reported in 14 different studyes using the command: res-metaprop(case,n,sm=PFT, comb.fixed=FALSE, comb.random=TRUE, studlab- paste(Study)) Using

[R] NeweyWest in sandwich-package

2014-04-17 Thread Katharina Mersmann
This post was nearly what I was searching for. Im actually trying to reproduce my Stata results in R and don´t overcome the problem of the NeweyWest Estimators. I have quarterly PanelData In Stata i used: newey y x, lag(4) force In R this should be reg1.2-lm(y~x) coeftest(reg1.2,

Re: [R] ggplot2: using coord_trans for logit - probability

2014-04-17 Thread Michael Friendly
I know I can do that. My example was just a toy version of a more complex graph I generate on the logit scale, and save as gg. I wanted to know if there was a way to transform it to the probability scale by using gg + coord_trans() with some suitable argument(s) for example, this *does*

[R] kde {ks}

2014-04-17 Thread Stevan Lauriault
I've been using the ode function from ks to compute kernel density estimates on 3D data sets consisting of 20,000 data points. Up until yesterday it has been working well. Now, it won't allow me to run on anymore than around ~5,000 points. Wondering if this is an update issue and if anyone can

[R] Help with SSlogis and nls

2014-04-17 Thread Mahometa, Michael J
Hi, I'm trying to use SSlogis to fit a logistic model, but I get the error: step factor 0.000488281 reduced below 'minFactor' of 0.000976562 I know I can use the nls.control within nls to help with this error, but the nls call that is producing this error looks to be from _within_ SSlogis. So

[R] kaveri with R on GPU?

2014-04-17 Thread ivo welch
does anyone have a kaveri based system with R recompiled to use its GPU? is this even possible today? regards, /iaw PS: I am trying to collect benchmarks http://r.ivo-welch.info/ Ivo Welch (ivo.we...@gmail.com) [[alternative HTML version deleted]]

[R] Fontconfig error in R 3.10 when running

2014-04-17 Thread Yue Li
Dear List, After updating to R 3.10 and Bioconductor 2.14, I'm having a rather frustrating error whenever I try using function like cairo_ps to save eps figures as demonstrated in the following example: cairo_ps('test.eps') plot(c(1:10),c(1:10)) Fontconfig error: Cannot load default config

Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread Boris Steipe
filled.contour() is written in R as a layout wrapper for .filled.contour(), which does the actual plotting. The code handles the construction of the key legend. I have added a parameter key.extend = FALSE to the function and I believe it does what you were asking for, judging from the

[R] Integrating R with Elasticsearch and Symfony2

2014-04-17 Thread Ingmar Heinrich
Hi, I have no idea if this is the right place to ask - if not, please tell me a better suited one :) We are currently building a system that consists of an Angular-JS frontend, a Symfony2 backend and an Elasticsearch 1.1 cluster, all on Ubuntu 12.04. Now we're starting to do statistical analysis

[R] Panel Data Estimators (within, between, Random Effects estimator)

2014-04-17 Thread Schillebeeckx, Simon
Dear, I am writing you following a rather old post I found herehttps://stat.ethz.ch/pipermail/r-help/2006-May/105142.html where Ronggui Huang mentions some code I could probably use. Currently, I am in the process of doing panel data regressions in R and I am using the plm package which works

Re: [R] Help in analysis of similarity in Iramuteq

2014-04-17 Thread Boris Steipe
I think there is far too little information here to be able to even start guessing. But if you provide a small, reproducible example of the problem, I am sure you will get an answer in very short time. Let me recommend that you read the posting guide ... Cheers, B. On 2014-04-16, at 3:35 PM,

Re: [R] : Quantile and rowMean from multiple files in a folder

2014-04-17 Thread Zilefac Elvis
Hi AK, Thanks very much for the updated code. My simulated results are even more consistent with observations after apply the updated version of the code. Cheers, Atem. On Wednesday, April 16, 2014 11:31 PM, Zilefac Elvis zilefacel...@yahoo.com wrote: Hi AK, Thanks very much. Atem. On

Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread jlehm
This is great!! Thank you so much!!! If have to admit, though, that this script is a bit too advanced for me as that I could understand it. But perhaps I could ask you for one more thing? If possible, I would like, if the triangles replaced the first and the last box of the legend, instead of

Re: [R] help incorporating data subset lengths in function with ddply

2014-04-17 Thread Steve E.
Jeff - Thanks so very much for the solution and tips, all very much appreciated! Regards, Stevan -- View this message in context: http://r.789695.n4.nabble.com/help-incorporating-data-subset-lengths-in-function-with-ddply-tp4688926p4688999.html Sent from the R help mailing list archive at

[R] XML getNodeSet

2014-04-17 Thread Timothy W. Cook
R newbie, experienced software developer. I have a bit of confusion regarding using this function. See the XML fragment at the end of the post. This works as far as retrieving the nodeset: fileName - '/home/tim/MLHIM/git/EpiS3/test_ccd/inst/examples/001.xml' doc -

Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread Boris Steipe
On 2014-04-17, at 12:21 PM, jlehm wrote: This is great!! Thank you so much!!! If have to admit, though, that this script is a bit too advanced for me as that I could understand it. Most of it is the original code of the function :-) But perhaps I could ask you for one more thing? If

Re: [R] Exclude rows by criteria

2014-04-17 Thread arun
Hi, If the column is numeric class, you don't need as.numeric(as.character(...)).  My response was based on your original post I am analyzing two columns (both are factors): Using the same example, indx1 - with(dat1,year =2007 |year 2012) Warning messages: 1: In Ops.factor(year, 2007) : = not

Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread jlehm
This is it! :-) Thank's a million time for your help! Best, J -- View this message in context: http://r.789695.n4.nabble.com/plot-legend-in-filled-contour-plot-with-infinite-limits-tp4688905p4689012.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] ggplot2: using coord_trans for logit - probability

2014-04-17 Thread Brian Diggs
On 4/17/2014 5:44 AM, Michael Friendly wrote: I know I can do that. My example was just a toy version of a more complex graph I generate on the logit scale, and save as gg. I wanted to know if there was a way to transform it to the probability scale by using gg + coord_trans() with some

Re: [R] XML getNodeSet

2014-04-17 Thread Timothy W. Cook
Apologies, I forgot to add details: platform x86_64-pc-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 3 minor 0.1 year 2013 month 05 day16 svn rev62743 language R

[R] conditional probability removal

2014-04-17 Thread Charles Determan Jr
Greetings, I would like to randomly remove elements from a numeric vector but with different probabilities for higher numbers. For example: dat - sample(seq(10), 100, replace=T) # now I would like to say randomly remove elements but with a higher chance of removing elements = 5 and even

Re: [R] conditional probability removal

2014-04-17 Thread Boris Steipe
I think the discussion in this thread https://stat.ethz.ch/pipermail/r-help/2014-April/368816.html applies exactly. See the parameter prob of sample. Cheers, B. On 2014-04-17, at 4:07 PM, Charles Determan Jr wrote: Greetings, I would like to randomly remove elements from a numeric

Re: [R] Integrating R with Elasticsearch and Symfony2

2014-04-17 Thread Jeff Newmiller
The Posting Guide would be a good resource to refer to, since it points out what is on topic and some related lists including R-devel. --- Jeff NewmillerThe . . Go Live...

Re: [R] conditional probability removal

2014-04-17 Thread Rui Barradas
Hello, The discussion in that thread applies, maybe with prob - 1L + (dat = 5) + (dat = 8) Hope this helps, Rui Barradas Em 17-04-2014 21:17, Boris Steipe escreveu: I think the discussion in this thread https://stat.ethz.ch/pipermail/r-help/2014-April/368816.html applies exactly. See

[R] how I can I extract x,y and z values?

2014-04-17 Thread Kristi Glover
Hi R User, I was calculating a temperature (nestedness value) using nestedtemp and was able to plot the temperature for each species and sites, but I could not extract the information into table what is displayed in figure. It must be simple but I could not extract. any suggestions?

[R] Installation issues on OSX

2014-04-17 Thread Rory Kirchner
Hi everyone, I’m having some troubles installing R 3.1.0 on OSX from source using the homebrew package and was wondering if any OSX users had any ideas. I posted an issue on homebrew-science but the maintainer suggested it might be an error upstream, so I am reposting it here. Here is the

Re: [R] Installation issues on OSX

2014-04-17 Thread MacQueen, Don
Suggest you ask this question on r-sig-mac. And of course, searching the archives of that list might turn something up. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 From: Rory Kirchner

Re: [R] how I can I extract x,y and z values?

2014-04-17 Thread arun
Hi, Please check str(B) do.call(cbind,B$smooth) #gives x and y values #Couldn't find z values. A.K. On Thursday, April 17, 2014 5:12 PM, Kristi Glover kristi.glo...@hotmail.com wrote: Hi R User, I was calculating a temperature (nestedness value) using nestedtemp and was able to plot the

[R] Mixtures of smooths on the same covariate in mgcv?

2014-04-17 Thread Ateljevich, Eli@DWR
Hi all, I have observations that mix together contributions from several smooth functions of time. These smooths represent fluxes on a graph. Some of the observations are centered on the edges of the graph, and directly measure one flux. The others measurements are centered on the nodes of the