Re: [R] Help with categorical predicrots in regression models

2015-06-19 Thread David Winsemius
On Jun 19, 2015, at 2:32 PM, Pamela Foggia wrote: > Hello, > In my regression models (linear and logistic models) I have two predictor > variables, both are categorical variables: DEGREE and REGION. > > DEGREE is for educational level, that is an ordinal variable with five > levels (0-LT HIGH SC

Re: [R] desperatly seeking immediate help

2015-06-19 Thread Rolf Turner
On 20/06/15 07:59, Bondar, Cory A wrote: Hi I have 2 statistical questions I have to have answered today using r studio and it is not working right. I think I just do not know how to properly code it. require(fortunes) fortune("brain surgery") cheers, Rolf Turner -- Technical Editor ANZJS D

[R] Help with categorical predicrots in regression models

2015-06-19 Thread Pamela Foggia
Hello, In my regression models (linear and logistic models) I have two predictor variables, both are categorical variables: DEGREE and REGION. DEGREE is for educational level, that is an ordinal variable with five levels (0-LT HIGH SCHOOL, 1-HIGH SCHOOL, 2-JUNIOR COLLEGE, 3-BACHELOR, 4-GRADUATE).

[R] desperatly seeking immediate help

2015-06-19 Thread Bondar, Cory A
Hi I have 2 statistical questions I have to have answered today using r studio and it is not working right. I think I just do not know how to properly code it. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSU

Re: [R] Heatmap.2 error

2015-06-19 Thread Adams, Jean
Pijush, The error is a result of you having repeated color values. The warnings can be addressed by changing the arguments that you use. Attachments are removed from posts to R Help, so I used different data to show you an example. Jean library(gplots) data(mtcars) x <- as.matrix(mtcars[1:6

[R] Heatmap.2 error

2015-06-19 Thread Pijush Das
Dear Sir, Please help me solving the error occurring during the execution of the code given below. library("openxlsx") library(gplots) library("RColorBrewer") rix <- read.xlsx(file.choose(), sheet = 1, colNames = TRUE,rowNames = TRUE) rawdata <- data.matrix(rix) colors = c(seq(-2,-0.5,length=

[R] rdde : A package for DDE connections

2015-06-19 Thread Juan Manuel Truppia
Hi all, I'm building a new package for DDE connections on R. It's called rdde and lives in https :// bitbucket.org / juancentro

Re: [R] Setting two default CRAN servers under Windows/RStudio

2015-06-19 Thread Thierry Onkelinx
We have this in our Rprofile.site This works fine. It checks each mirror and installs (or updates) the latest version available on all mirrors. e.g. abc 0.1 on RStudio and abc 0.2 on RForge, then abc 0.2 from RForge gets installed/updated. options( repos = c( RStudio = "http://cran.rstudio.c

Re: [R] Setting two default CRAN servers under Windows/RStudio

2015-06-19 Thread Duncan Murdoch
On 19/06/2015 8:14 AM, Sigbert Klinke wrote: > Hi, > > we are running in our network a non-public CRAN mirror. I got it working > with the entry in "Rprofile.site" > > local({r <- getOption("repos") >r["CRAN"] <- "http://local.cran.server"; >options(repos=r) > }) > > In case that

[R] Setting two default CRAN servers under Windows/RStudio

2015-06-19 Thread Sigbert Klinke
Hi, we are running in our network a non-public CRAN mirror. I got it working with the entry in "Rprofile.site" local({r <- getOption("repos") r["CRAN"] <- "http://local.cran.server"; options(repos=r) }) In case that our CRAN mirror does not work we want to send the R/RStudio users

Re: [R] Sign of specific elements of a vector

2015-06-19 Thread Frank S.
Thank you for all your observations and comments!! As you suggest, the option x <- x*c(rep(1,19), -1) is a more elegant and a fast way! Frank S. > From: dwinsem...@comcast.net > Date: Thu, 18 Jun 2015 21:33:57 -0700 > To: marc_schwa...@me.com > CC: r-help@r-project.org > Subject: Re: [R] Sig

Re: [R] Repeated Measures ANOVA and Missing Values in the data set

2015-06-19 Thread Stéphane Adamowicz
This happens because your model should be : aov.out = aov(values ~ time + Error(subject), data=mydata2) This will not generate any error. However, you should be aware that aov is not suitable for unbalanced data, for which it will give inconsistent results. In such case, you can use the lme fun