Re: [R] why RODBC on windows 7 with Sybase, returns garbage?

2014-11-04 Thread Alok Jadhav
Hi James, Is your server name correct in the string below? Looks like you are using incorrect server name. If you don't give full server name, then the server has to be registered with ODBC management tool so that it can be picked up automatically. Regards, Alok From: James Mathew [via R] [m

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread David Winsemius
On Nov 4, 2014, at 3:41 PM, CJ Davies wrote: > On 04/11/14 17:42, David Winsemius wrote: >> On Nov 4, 2014, at 9:16 AM, CJ Davies wrote: >> >>> On 04/11/14 17:02, David Winsemius wrote: On Nov 4, 2014, at 8:35 AM, CJ Davies wrote: > On 04/11/14 16:13, PIKAL Petr wrote: >> Hi >

[R] Frailty and tt terms in coxph

2014-11-04 Thread Christos Argyropoulos
Dear all, I am receiving the following error when trying to include both tt (time transforms) and frailty terms in coxph > coxph(Surv(time, status) ~ ph.ecog + tt(age)+cluster(sex), data=lung, + tt=function(x,t,...) pspline(x + t/365.25)) Error in residuals.coxph(fit2, type = "dfbeta", coll

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread CJ Davies
On 04/11/14 17:42, David Winsemius wrote: > On Nov 4, 2014, at 9:16 AM, CJ Davies wrote: > >> On 04/11/14 17:02, David Winsemius wrote: >>> On Nov 4, 2014, at 8:35 AM, CJ Davies wrote: >>> On 04/11/14 16:13, PIKAL Petr wrote: > Hi > >> -Original Message- >> From: r-help

[R] Volunteers for Google Code-in mentor & co-admin/admin

2014-11-04 Thread Gaurav Sehrawat
Hello everyone , I would like to bring everyone's attention to this thread : https://groups.google.com/forum/#!topic/gsoc-r/dtYY_5NBvyc . R-project has been participating for Google Summer of Code since long time . This R-project is planning for Google Code-in ,to introduce school kids about the

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread David Winsemius
On Nov 4, 2014, at 9:16 AM, CJ Davies wrote: > On 04/11/14 17:02, David Winsemius wrote: >> >> On Nov 4, 2014, at 8:35 AM, CJ Davies wrote: >> >>> On 04/11/14 16:13, PIKAL Petr wrote: Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@

Re: [R] Help with glm and glht for analysing count data

2014-11-04 Thread Bert Gunter
It appears that these are primarily statistical issues and, as such, are somewhat off topic here. I suggest you post on stats.stackexchange.com instead for statistical help. Also, if you insist on posting here, post in plain text, not HTML (as requested by the posting guide, which you would do wel

[R] Help with glm and glht for analysing count data

2014-11-04 Thread Mary Crossland
Dear all, I’d like some help with analysing some count data. I am very new to R (and statistical analysis for that matter!) and have done my best to work it out on my own … but seemed to have got stuck! I am looking at the effects of cutting hedges on invertebrates (I’m not that interested in t

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread CJ Davies
On 04/11/14 17:02, David Winsemius wrote: On Nov 4, 2014, at 8:35 AM, CJ Davies wrote: On 04/11/14 16:13, PIKAL Petr wrote: Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of CJ Davies Sent: Tuesday, November 04, 2014 2:50 PM

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread David Winsemius
On Nov 4, 2014, at 8:35 AM, CJ Davies wrote: > On 04/11/14 16:13, PIKAL Petr wrote: >> Hi >> >>> -Original Message- >>> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >>> project.org] On Behalf Of CJ Davies >>> Sent: Tuesday, November 04, 2014 2:50 PM >>> To: Jim Lemon; r-h

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread CJ Davies
On 04/11/14 16:13, PIKAL Petr wrote: Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of CJ Davies Sent: Tuesday, November 04, 2014 2:50 PM To: Jim Lemon; r-help@r-project.org Subject: Re: [R] Variance of multiple non-contiguous t

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of CJ Davies > Sent: Tuesday, November 04, 2014 2:50 PM > To: Jim Lemon; r-help@r-project.org > Subject: Re: [R] Variance of multiple non-contiguous time periods? > > On 04/11/14

Re: [R] Function that creates a Date column

2014-11-04 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Frederic Ntirenganya > Sent: Tuesday, November 04, 2014 3:45 PM > To: r-help@r-project.org > Subject: [R] Function that creates a Date column > > Dear All, > > I would like to

Re: [R] Function that create day of the year column.

2014-11-04 Thread PIKAL Petr
Hi You want a function with input of either single value or a data frame? This is very strange. One option is to make a method for function but it is quite beyond my capabilities and it is used by "professional" developers. methods(c) or methods(plot) So you need to set method for your functio

[R] Function that creates a Date column

2014-11-04 Thread Frederic Ntirenganya
Dear All, I would like to Write a function that creates a Date column stored as a factor given a date column stored as string in a dataframe. Any idea is more helpful. Regards, Frederic. Frederic Ntirenganya Maseno University, African Maths Initiative, Kenya. Mobile:(+254)718492836 Email: fr..

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread CJ Davies
On 04/11/14 09:11, Jim Lemon wrote: On Mon, 3 Nov 2014 12:45:03 PM CJ Davies wrote: ... On 30/10/14 21:33, Jim Lemon wrote: If I understand, you mean to calculate deviations for each individual 'chunk' of each transition & then aggregate the results? This is what I'd been thinking about, but is

Re: [R] Function that create day of the year column.

2014-11-04 Thread daniel
Maybe, you can add a parameter with a list of the column names and inside the function an if statement, if the list lenght is 1 use the function with 1 column else the 3 columns. I am sure you can find better solutions. Daniel Merino 2014-11-04 9:30 GMT-03:00 Frederic Ntirenganya : > Hi Daniel,

Re: [R] Function that create day of the year column.

2014-11-04 Thread Frederic Ntirenganya
Hi Daniel, How can I add an if conditiopn or for loop to implement this in my function? ex: option1 : single date option2: date in 3 columns (year,moth,day) yday(Sys.Date()) yday(as.Date(paste(y,m,d,sep="-"))) Regards, Frederic. Frederic Ntirenganya Maseno University, African Maths Initi

Re: [R] Function that create day of the year column.

2014-11-04 Thread daniel
Frederic, Check the lubridate library. install.packages("lubridate") library(lubridate) yday(Sys.Date()) d <- 4 m <- 11 y <- 2014 yday(as.Date(paste(y,m,d,sep="-"))) Daniel Merino 2014-11-04 7:01 GMT-03:00 Frederic Ntirenganya : > Dear All, > > I would like to make a function that create Day o

[R] Function that create day of the year column.

2014-11-04 Thread Frederic Ntirenganya
Dear All, I would like to make a function that create Day of the year column in a dataset. State of the problem: write a function that create a day column either from a single date column (string/or factors) or from date in 3 columns (year, month, day). I made the following function for a single

[R] Function that create day of the year column.

2014-11-04 Thread Frederic Ntirenganya
Dear All, I would like to make a function that create Day of the year column in a dataset. State of the problem: write a function that create a day column either from a single date column (string/or factors) or from date in 3 columns (year, month, day). I made the following function for a single

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-04 Thread Jim Lemon
On Mon, 3 Nov 2014 12:45:03 PM CJ Davies wrote: > ... > On 30/10/14 21:33, Jim Lemon wrote: > If I understand, you mean to calculate deviations for each individual > 'chunk' of each transition & then aggregate the results? This is what > I'd been thinking about, but is there a sensible manner withi

Re: [R] Stacked squares plots

2014-11-04 Thread Jim Lemon
On Tue, 4 Nov 2014 01:54:45 AM Osman Al-Radi wrote: > Dear R-help users, > > I would like to produce a plot of ordered stacked coloured square where each > square would represent a level of a categorical variable CAT (aprox. 150 > levels), the size of the square would represent the frequency FRE