Re: [R] Error in gam() object 'scat' no found

2016-09-27 Thread Karl Neergaard
Thank you David for taking time to answer my not so helpful question. On Tue, Sep 27, 2016 at 11:15 PM, David Winsemius wrote: > > > On Sep 26, 2016, at 9:50 PM, Karl Neergaard > wrote: > > > > I received an error message while trying to use family=scat in the GAM > > package. The models were

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Michael Sumner
Opendap won't work on Windows CRAN build of ncdf4, though the rgdal build does work directly on grib. Summary: download the files wholus for use on Windows, or set your own system on Linux. Building ncdf4 on Windows is not too hard if you know about doing that. Cheers, Mike On Wed, 28 Sep 2016,

[R] How to test a difference in ratios of count data in R

2016-09-27 Thread Shuhua Zhan
Hello R-experts, I am interested to determine if the ratio of counts from two groups differ across two distinct treatments. For example, we have three replicates of treatment A, and three replicates of treatment B. For each treatment, we have counts X from one group and counts Y from another gro

Re: [R] Fw: R problem

2016-09-27 Thread John Kane
We have a "Do not help with homework" policy on R-help. We think that a student should speak with his or her instructor or tutor if help is needed. So you are unlikely to get much help here though it is possible. For future reference, 1. your script did not arrive. The data did. R-help is very

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Roy Mendelssohn - NOAA Federal
Please post the code of what you tried, as I have no idea otherwise what did or did not work for you. -Roy > On Sep 27, 2016, at 12:44 PM, Debasish Pai Mazumder wrote: > > Hi Roy, > Thanks for your response. I have tried according your suggestion but it > doesn't work. > the OPeNDAP link of t

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Spencer Graves
I don't know if "openxlsx" will solve Christofer's problem, but it solved a problem I encountered recently reading a large data set: read.xls{gdata} read 20734 obs. of 141966 rows and stopped without warning. read.xls{fImport} and read_excel{readxl} both read 65536 rows. I couldn't ge

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Debasish Pai Mazumder
Hi Roy, Thanks for your response. I have tried according your suggestion but it doesn't work. the OPeNDAP link of the data http://nomads.ncdc.noaa.gov/thredds/dodsC/modeldata/cfsv2_ forecast_ts_9mon/2014/201404/20140403/2014040312/ datafile: tmax.01.2014040312.daily.grb2 Thanks -Deb On Tue, Sep

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Nordlund, Dan (DSHS/RDA)
Christofer, I do not really use the xlsx package, so this may not be the 'best' approach. And based on your spreadsheet, and the code that you supplied, I am not sure what you really intended. But here is some sample code that will update cells in your spreadsheet without changing the formatt

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Roy Mendelssohn - NOAA Federal
Look at the package ncdf4. You can use an OPeNDAP URL in place of the file name to perform subsets., -Roy > On Sep 27, 2016, at 9:06 AM, Debasish Pai Mazumder wrote: > > Hi all, > > I would like to access and subset following OpeNDAP files. > server: > http://nomads.ncdc.noaa.gov/thredds/dod

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Christofer Bogaso
Hi Daniel, Am attaching an example xlsx file which I need to modify. I have tried with below code : library(xlsx) Data = data.frame(1:20) wb <- loadWorkbook("asd.xlsx") ### Assume I saved asd.xlsx in the working directory addDataFrame(Data, sheet = getSheets(wb)[['Sheet1']], startRow=5, startC

[R] Researches about using R in economic educational purposes - ask for help / cooperation.

2016-09-27 Thread Mateusz Kopyt
Dear All, first of all I'd like to say hello to everybody because it is my first post on the list. I'm the academic teacher (Ph.D) at University of Warsaw, Faculty of Economic Sciences and I've been using R for a couple of years during my classes and in my scientific work. I'm not the only o

[R] Fw: R problem

2016-09-27 Thread Elham Fakharizade via R-help
HelloI want to calculate sen slope with out using package. I wrote one but,  it is wrong. I attache my data and my script. would you please check it.Many thanksSincerely yoursElham 1.46 1.22 1.19 1 1.11 1.16 0.78 0.84 0.79 0.85 0.54 0.49 0.61 0.66

Re: [R] Testing significance of individual regression slopes

2016-09-27 Thread Bert Gunter
You can't if I understand correctly: there is no individual subject regression coefficient, only a variance component for a random subject intercept. Do you mean that you want to "test" whether that component is nonzero ?(It is, of course). If so, IIRC, lmer eschews such tests for technical reason

[R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Debasish Pai Mazumder
Hi all, I would like to access and subset following OpeNDAP files. server: http://nomads.ncdc.noaa.gov/thredds/dodsC/modeldata/cfsv2_forecast_ts_9mon/2014/201404/20140403/2014040312/ file name: tmax.01.2014040312.daily.grb2

Re: [R] Fw: R problem

2016-09-27 Thread Bert Gunter
This list has a *no homework* policy. Cheers, 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 Tue, Sep 27, 2016 at 7:18 AM, Elham Fakharizade via R-help w

[R] Testing significance of individual regression slopes

2016-09-27 Thread Patzelt, Edward
Hi R-help, I have an lmer logistic regression with a within subjects IV and subject as a random factor: model <- lmer(optimal_choice ~ level_one_value_difference + (1|subid), data = dat) What I want is to test if the individual subject regression coefficient is significantly different from 0.

[R] Fw: R problem

2016-09-27 Thread Elham Fakharizade via R-help
HelloI am university student.I should do a R home work. That is writing sen slope code in R and calculate it with out using package. I wrote one but,  it is wrong. I attache my data and my script. would you please check it.Many thanksSincerely yoursElham 1.46 1.22 1.19 1 1.11 1.16 0

[R] Statistical Computing & Graphics Student Paper Competition 2017

2016-09-27 Thread Patrick Breheny
Statistical Computing and Statistical Graphics Sections American Statistical Association Student Paper Competition 2017 The Statistical Computing and Statistical Graphics Sections of the ASA are co-sponsoring a student paper competition on the topics of Statistical Computing and Statistical Gr

Re: [R] Error in gam() object 'scat' no found

2016-09-27 Thread David Winsemius
> On Sep 26, 2016, at 9:50 PM, Karl Neergaard wrote: > > I received an error message while trying to use family=scat in the GAM > package. The models were working fine yesterday. > The problem is not with my data seeing as the gaussian distribution is > working fine. > > mod=gam(RT~s(a) + s(b),

Re: [R] R-package (“SeCuredSurv”)

2016-09-27 Thread Thierry Onkelinx
Dear Anonymous, It's seems like that package never made it to CRAN. You should contact the package author or the author of the reference. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Bi

Re: [R] R-package (“SeCuredSurv”)

2016-09-27 Thread Sarah Goslee
The only google hit appears to be that paper, which is a 2014 PhD dissertation, and states that the author will be uploading it on CRAN. Since that hasn't been done, the only thing you can do is try to track down the author and ask. Sarah On Tue, Sep 27, 2016 at 4:45 AM, stud1830153714 wrote: >

[R] R-package (“SeCuredSurv”)

2016-09-27 Thread stud1830153714
To whom it may concern I am MS student of Biostatistics. One of my thesis references is the article" High-Dimensional Variable Selection for Multivariate and Survival Data with Applications to Brain Imaging and Genetic Association Studies. "And in the article it mentions that they use the R-p

Re: [R] ggplot grouped barchart based on marginal proportions

2016-09-27 Thread Crump, Ron
Hi Paul, Do you want to avoid using prop.table(mtcars_xtab, 1) ? If not, how about: ggplot(as.data.frame(prop.table(mtcars_xtab, 1)))+ geom_bar(aes(x=Var2,y=Freq,fill=Var1), stat="identity", position="dodge")+ scale_fill_brewer(palette="Set2") Ron. __

Re: [R] Using lapply in R data table

2016-09-27 Thread Frank S.
Many thanks Ista and Bert for your nice solutions! As Ista commented in a previous mail, the 0.87 value in my example is not fixed, but for each subject it depends on the difference "2007-01-01 - fini". However, both of your solutions take into account this fact. Frank S. ___

Re: [R] src/Makevars ignored ?

2016-09-27 Thread Martin Morgan
On 09/26/2016 07:46 AM, Eric Deveaud wrote: Hello, as far as I understood the R library generic compilation mechanism, compilation of C//C++ sources is controlde 1) at system level by the ocntentos RHOME/etc/Makeconf 2) at user level by the content of ~/.R/Makevars 3) at package level by