Re: [R] Recurrent analysis survival analysis data format question

2014-06-11 Thread bgreen
Hello Chris, Thanks. This is not as straight forward as it seems. Given an index release date, I have dates of prior and subsequent imprisonment, offending that results in re-incarceration and hospital admission dates, pre and post. There are some additional complexities, such as people released

Re: [R] Examining how cases are similar by cluster, in cluster analysis

2012-11-18 Thread bgreen
Hello David, Many thanks - this does exactly what I want and it lets me see whether the clusters make sense in terms of the patetrn of values & where they join a cluster. Regards Bob > Something like this? > >> split(FS1, hcli8) > $`1` >X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 > 1 1 1 0

Re: [R] CSV value not being read as it appears

2011-01-15 Thread bgreen
David, Thanks. When I am back at work I will try to find out some specifics regarding the original data base and how the reports are generated. The differencs are not apparent via manual inspection. I will look at the csv file in an editor as well and look into xlsReadWrite. I agree EXCEL format

Re: [R] CSV value not being read as it appears

2011-01-14 Thread bgreen
Brian, Thanks. My response to David follows. I should add that this problem has never occurred previously as far as I know (I have now checked the previous report I was sent): Hello David, Thanks for your e-mail. The data was a report derived from a statewide database, saved in EXCEL format, so

Re: [R] CSV value not being read as it appears

2011-01-14 Thread bgreen
Hello David, Thanks for your e-mail. The data was a report derived from a statewide database, saved in EXCEL format, so the usual issue of the vagaries of human data entry variation wasn't the issue as the data was an automated report, which is run every three months. I would not have even noticed

[R] CSV value not being read as it appears

2011-01-13 Thread bgreen
I have a frustrating issue which I am hoping someone may have a suggestion about. I am running XP and R 2.12.0 and saved an EXCEL file that I was sent as a csv file. The initial code I ran follows. dec <- read.csv("g://FMH/FO30122010.csv",header=T) dec.open <- subset (dec, Status == "Open") tab