Re: [R] How to define proper breaks in RFM analysis

2017-10-22 Thread Hemant Sain
hello, I'm confused what you guys are talking about. i just want to set ideal threshold values for my RFM scores which can be done using Quantiles but i don't want to use quantiles because my data is not normally distributed so it will lead to wrong ranges of breaks. to fix this problem I'm looking

Re: [R] Problem when trying to run Java in R:

2017-10-22 Thread David Winsemius
> On Oct 21, 2017, at 4:35 AM, Morkus via R-help wrote: > > Hello All, > > Although running Java from R used to work, for some mysterious reason, it's > stopped. > > Today when I tried to load a basic JDBC driver (or the sample .jinit()) code, > I got: > > - JavaVM: requested Java version (

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread David Winsemius
> On Oct 22, 2017, at 5:26 PM, Sorkin, John wrote: > > David, > predict.glm and se.fit were exactly what I was looking for. The default 'se' delivered for a listed contrast is not for that particular level per se, but rather for the difference between that level and the non-listed factor leve

Re: [R] Problem when trying to run Java in R:

2017-10-22 Thread Jeff Newmiller
I suggest asking a Mac-OS-specific question like this on the r-sig-mac mailing list. A common problem is attempting to access a 64-bit implementation of Java from a 32-bit version of R, or vice versa, but you may want to include the output of sessionInfo() and a reproducible example (both input

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread Sorkin, John
David, predict.glm and se.fit were exactly what I was looking for. Many thanks! John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine Baltimore VA Medical Center 1

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread David Winsemius
> On Oct 22, 2017, at 5:01 PM, Sorkin, John wrote: > > David, > Again you have my thanks!. > You are correct. What I want is not technically a contrast. What I want is > the estimate for "regional" and its SE. There needs to be a reference value for the contrast. Contrasts are differences. I

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread Sorkin, John
David, Again you have my thanks!. You are correct. What I want is not technically a contrast. What I want is the estimate for "regional" and its SE. I don't mind if I get these on the log scale; I can get the anti-log. Can you suggest how I can get the point estimate and its SE for "regional

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread David Winsemius
> On Oct 22, 2017, at 3:56 PM, Sorkin, John wrote: > > David, > Thank you for responding to my post. > > Please consider the following output (typeregional is a factor having two > levels, "regional" vs. "general"): > Call: > glm(formula = events ~ type, family = poisson(link = log), data = da

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread Sorkin, John
David, Thank you for responding to my post. Please consider the following output (typeregional is a factor having two levels, "regional" vs. "general"): Call: glm(formula = events ~ type, family = poisson(link = log), data = data, offset = log(SS)) Deviance Residuals: Min 1Q M

Re: [R] ggplot2 and tikzDevice : problems with accents

2017-10-22 Thread Martin Møller Skarbiniks Pedersen
On 22 October 2017 at 17:56, Jacques Ropers wrote: > > Hi all, > > I can't fathom why the accented "é" in the following ggplot2 graph makes > R hangs when using tikzdevice, whereas it works using simple pdf device. > [...] I just tried your code and my R doesn't hang but it does give an TeX-erro

Re: [R] Syntax for fit.contrast

2017-10-22 Thread David Winsemius
> On Oct 22, 2017, at 6:04 AM, Sorkin, John wrote: > > I have a model (run with glm) that has a factor, type. Type has two levels, > "general" and "regional". I am trying to get estimates (and SEs) for the > model with type="general" and type ="regional" using fit.contrast ?fit.contrast No d

Re: [R] Add a vertical line and some values on a plot

2017-10-22 Thread Rui Barradas
Hello, After the plot just do abline(v = median(A)) As for how to plot points, see, well, ?points(). Hope this helps, Rui Barradas Em 22-10-2017 16:33, varin sacha via R-help escreveu: Dear R-experts, Here below is my code, I would like to add a vertical line on my plot, showing the median

[R] Add a vertical line and some values on a plot

2017-10-22 Thread varin sacha via R-help
Dear R-experts, Here below is my code, I would like to add a vertical line on my plot, showing the median and I would like to place some values on this graph as well, i.e. 4.3 and -8.4. How can I do ? Many thanks for your reply. A=c(1,2.3,4,3.5,4.3,2.5,6.3,-0.1,-1.5,3.7,-2.3,-3.5,5.4,3.2, -1

[R] Test set and Train set in Caret package train function

2017-10-22 Thread Elahe chalabi via R-help
Hey all, Does anyone know how we can get train set and test set for each fold of 5 fold cross validation in Caret package? Imagine if I want to do cross validation by random forest method, I do the following in Caret: set.seed(12) train_control <- trainControl(method="cv", number=5,savePredicti

[R] ggplot2 and tikzDevice : problems with accents

2017-10-22 Thread Jacques Ropers
Hi all, I can't fathom why the accented "é" in the following ggplot2 graph makes R hangs when using tikzdevice,  whereas it works using simple pdf device. ## library(tikzDevice) library(ggplot2) options(tikzDefaultEngine = "luatex") tikzLualatexPackages =c(   "\\usepackage{tikz}\n",   "

[R] Syntax for fit.contrast

2017-10-22 Thread Sorkin, John
I have a model (run with glm) that has a factor, type. Type has two levels, "general" and "regional". I am trying to get estimates (and SEs) for the model with type="general" and type ="regional" using fit.contrast but I can't get the syntax of the coefficients to use in fit.contrast correct. I