Re: [R] Logistic Regression output baseline (reference) category

2016-03-25 Thread Michael Artz
Hi, I have now read an introductory text on regression and I think I do understand what the intercept is doing. However, my original question is still unanswered. I understand that the intercept term is the constant that each other term is measured against. I think baseline is a good word for

Re: [R] Question about Imager

2016-03-25 Thread Ben Tupper
Hi, I can't answer your collage question but I am very glad that you brought imager to my attention - it looks great. That said, you might give ImageJ or its cousin Fiji a look for the task you have. There are hundreds of examples and a nice (easy!) macro language coupled to the user

[R] Error in FUN(X[[i]], ...)

2016-03-25 Thread Mohamed Benahmed
hello, I have to show the graph of simulation "car2car"(link of code sourceĀ  https://github.com/cawka/ndnSIM-nom-rapid-car2car) but when I run the cmd ./run.py -s figure-4-data-propagation-vs-distance I have this errorĀ  _ .. ./build/car-relay

Re: [R] Manually inserting an extra tick on the y axis in ggplot2

2016-03-25 Thread KMNanus
Thanks. Actually, found a good answer online - I wanted a horizontal line with a y intercept of 12.6. I set m <- 12.6 I drew the line with geom_hline then added geom_text(aes(0,m,label = m, vjust = -1)) which worked just fine. Ken kmna...@gmail.com 914-450-0816 (tel) 347-730-4813 (fax)

[R] converting a class dataframe (chars) to transaction class

2016-03-25 Thread Santanu Mukherjee
Running R backend MySQL - ran a query <- Query the resulting dataframe contains 2 columns and both are chars. Need to change the dataframe class to transaction class as I need to run Apriori algorithm how to do that? Thanks Santanu [[alternative HTML version deleted]]

[R] Question about Imager

2016-03-25 Thread Jenny Vander Pluym - NOAA Federal
Hello! I found the imager package but have a question. Is it possible to construct a collage or 4 images after resizing them? I would like to batch make some collages (A LOT of them) and have only been able to automate certain steps of the process in Photoshop. I would like to be able to

[R] fftImg() error: fftw_access_func

2016-03-25 Thread Eric Handler
Hello- My name is Eric Handler and I am an academic technologist supporting the Science Division(7 academic departments) at Macalester College in Saint Paul, MN. The faculty use R for a variety of teaching and research tasks around campus. I administer our RStudio instance and have encountered an

Re: [R] [FORGED] Manually inserting an extra tick on the y axis in ggplot2

2016-03-25 Thread Rolf Turner
On 26/03/16 03:07, KMNanus wrote: I have called geom_hline to insert a horizontal line on the y axis of a plot at a given point. How can I insert the corresponding tick and its value on the y axis itself? I think that axis() is what you need, but it's hard to tell without a reproducible

Re: [R] Manually inserting an extra tick on the y axis in ggplot2

2016-03-25 Thread John Kane
You might abe able to do it by using scale_y_continuous() but it would be a great help to see some (minimal) code and some sample data. Please have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html

Re: [R] Persistent state in a function?

2016-03-25 Thread Greg Snow
Here is the rough equivalent to what you did but using the R6 package: library(R6) Cache <- R6Class("Cache", public = list( myCache = numeric(0), add = function(x) { self$myCache <- c(self$myCache, x) print(self$myCache) } ) ) cacheThis <- Cache$new()

Re: [R] Persistent state in a function?

2016-03-25 Thread Boris Steipe
To follow on, for the record, here's the code example using local() instead: Comments appreciated. # === CODE cacheThis <- local({ # creates a closure, assigned to "cacheThis" myCache <- numeric()# a persistent variable in the closure's environment useCache <-

Re: [R] rms package: output interpretation

2016-03-25 Thread David Winsemius
> On Mar 25, 2016, at 6:31 AM, T.Riedle wrote: > > Hi everybody, > > I am trying to run a logistic regression using the rms package. Here is the > output of my model. > > Logistic Regression Model > > lrm(formula = stock.market.crash ~ crash.t.1.to.t.L +

Re: [R] size issue with source

2016-03-25 Thread Boris Steipe
I can't tell what's happening here unless I see the actual code that produces the behaviour. Just the code should be fine, no need to attach your big file. Also: what exactly is the issue you need to solve? B. On Mar 25, 2016, at 6:39 AM, Jun Chen wrote: > Hello:

Re: [R] How to add no data entries into current dataframe?

2016-03-25 Thread Bert Gunter
?rbind Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Mar 24, 2016 at 9:49 PM, Hiroyuki Sato wrote: > Hello members > > Question >

[R] Manually inserting an extra tick on the y axis in ggplot2

2016-03-25 Thread KMNanus
I have called geom_hline to insert a horizontal line on the y axis of a plot at a given point. How can I insert the corresponding tick and its value on the y axis itself? Ken kmna...@gmail.com 914-450-0816 (tel) 347-730-4813 (fax) __

[R] Performance Analytics Modigliani Code help

2016-03-25 Thread Jessy-Esther Missengue
Hi all, I am researching performance of funds in the FTSE100 and am using the Modigliani function in the PerformanceAnalytics package. I have attached my raw data for your reference. When I try to use the Modigliani code as follows: Modigliani (a,b,c=0) where a is my data set "1000 RANDOM...",

[R] size issue with source

2016-03-25 Thread Jun Chen
Hello: I have met an issue when I use the function "source". For example, we use function source to read a txt file, say all.txt, which contains three function: A, B, C. Then I use the function save to save individual function A to a file say Abig, whose size on the drive is Abigsize. While I

[R] rms package: output interpretation

2016-03-25 Thread T.Riedle
Hi everybody, I am trying to run a logistic regression using the rms package. Here is the output of my model. Logistic Regression Model lrm(formula = stock.market.crash ~ crash.t.1.to.t.L + MA.inflator.monthly + realized.volatility.10 + MA.MP.100 + MA.UI.100 + MA.DEI.100 + MA.UPR.100,

Re: [R] Trouble reshaping data to my satisfaction

2016-03-25 Thread Jim Lemon
Hi Jennifer, This is very hacky, but I think it does most of what you want. I can't really work out what "Sample Size" is supposed to be: MOERS<-data.frame(MOE[MOE$SEX_P=="Males_0.1",c("Meff","Proportion")], Males_0.1=MOE[MOE$SEX_P=="Males_0.1","MOE"],

Re: [R] How to add no data entries into current dataframe?

2016-03-25 Thread Hiroyuki Sato
Hello Ulrik and Jeff Thank you for replying. I succeed to create data frame following steps. s <- structure(list(ID = c(101L, 102L, 103L, 103L), DATE = c(20160301L, 20160301L, 20160301L, 20160302L), VAR = c(1L, 1L, 1L, 1L), CODE = structure(c(1L, 2L, 3L, 3L), .Label = c("PDT1", "PDT2", "PDT3"),

Re: [R] How to add no data entries into current dataframe?

2016-03-25 Thread Ulrik Stervbo
You could make a vector with all possible IDs. Use %in% to get just those that are missing. missing.id <- c (101:1000) missing.id <- missing.id[! missing.id %in% s $ID] Df2 <- data.frame(ID = missing.id, CODE = paste0 (PDT, missing.id), VAR = 0) Modify your original data.frame so you can rind