[R] Fixed effects in negative binomial mixed model mgcv::gam

2018-10-19 Thread Smith, Desmond
I am using gam from the mgcv package to analyze a dataset with 24 entries : ran f1 f2 y 1 30005 545 1 300010 1045 1 1 5 536 1 1 10 770 2 30005 842 2 300010 2042 2 1 5 615 2 1 10 1361 3 30005 328 3 300010 1028

Re: [R] Importing SAS datasets into R efficiently

2018-10-19 Thread Kevin Thorpe
For some reason, the mailing list got dropped from my reply below. -- Kevin E. Thorpe Head of Biostatistics,  Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevi

Re: [R] Importing SAS datasets into R efficiently

2018-10-19 Thread Marc Schwartz via R-help
Hi, 'foreign' will only read SAS XPT files, not the proprietary BDAT files, which I presume is the case here. I don't use 'haven', but it looks like the key functions are written in C/C++, which should be relatively efficient. If you are having specific issues with particular files, because t

Re: [R] Importing SAS datasets into R efficiently

2018-10-19 Thread Bert Gunter
Have you looked at the "foreign" package? -- Bert 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 Fri, Oct 19, 2018 at 6:48 AM Jomy Jose wrote: > Hi > > Is t

[R] Importing SAS datasets into R efficiently

2018-10-19 Thread Jomy Jose
Hi Is there an efficient way to import SAS datasets into R,presently while using haven package it takes long time...Is there a smart work around this ? Thanks in advance Jose [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] Matching multiple search criteria (Unlisting a nested dataset, take 2)

2018-10-19 Thread Ista Zahn
Here is another approach, just for fun: library(tidyverse) library(tokenizers) anyall <- function(x, # a character vector terms # a list of character vectors ){ any(map_lgl(terms, function(term) { all(term %in% x) })) } mutate(th, flag

Re: [R] Genuine relative paths with R

2018-10-19 Thread Olivier GIVAUDAN
Hello Katharina, ​ Indeed, I forgot this solution to have your own server, probably because in my organisation this is not an option, yet.​ ​ I'm pushing for that in our organisation for months now but there is quite some resistance and heavy processes around that, and ultimately I'm not deciding

Re: [R] Project in emacs + ess

2018-10-19 Thread Eric Berger
Not exactly sure what you are looking for but here is my workflow which may give you another perspective 1. my OS is linux 2. I edit my files in emacs (with ESS pulled in) 3. I use make (and Makefile) to compile .o's and .so's from .cpp where necessary (i.e. I use Rcpp etc) (and also to build s

Re: [R] Genuine relative paths with R

2018-10-19 Thread Fritsch, Katharina (NNL)
Hello Olivier, You can definitely use Shiny Server to share data and apps on a server you (or the people who asked you to share the data) own and which is only accessible from specified networks. I’ve personally contributed R code to exactly such a project that involved confidential data. Kind r