[R] mstate with multiple initial states?

2017-01-09 Thread Lucy Leigh
sure whether adding this extra initial state is a valid option? Thanks in advance for anyone who can help me out, Lucy Leigh mstate: An R Package for the Analysis of Competing Risks ...<https://www.jstatsoft.org/article/view/v038i07> www.jstatsoft.org Authors: Liesbeth C. de Wreede, Mart

[R] Simulating from a Weibull distribution

2014-09-02 Thread Lucy Leigh
Hi, I wish to simulate some data from a Weibull distribution. The rweibull function in R uses the parameterisation 'with shape parameter a and scale parameter b has density given by f(x) = (a/b) (x/b)^(a-1) exp(- (x/b)^a)'. However, it would be much more useful for me to simulate data using a

Re: [R] Simulating from a Weibull distribution

2014-09-02 Thread Lucy Leigh
Awesome, thankyou! From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Wednesday, 3 September 2014 12:04 PM To: Lucy Leigh Cc: r-help@R-project.org Subject: Re: [R] Simulating from a Weibull distribution Hi Lucy, Try the gamlss.dist package, specifically the rWEI2() function. Cheers

[R] 'rms' package error

2014-04-02 Thread Lucy Leigh
Hi everyone, I am attempting to use the R package 'rms' http://biostat.mc.vanderbilt.edu/wiki/Main/Rrms to implement a PH weibull model, using the pphsm() function. However, I get the following error, f.ph - pphsm(f) Warning message: In pphsm(f) : at present, pphsm does not return the correct

[R] Simulating from the Weibull with right censoring

2014-03-23 Thread Lucy Leigh
Hi everyone, I am currently attempting to simulate some survival data, based on a Weibull model. I basically need to simulate some survival data so that I can then test out a program I'm writing, before applying it to some real data. I've managed to create failure time data, using the rweibull

Re: [R] Simulating from the Weibull with right censoring

2014-03-23 Thread Lucy Leigh
)) } if (Y[i] censorT){ Y[i] - censorT death[i] - 0} else {Y[i] - Y[i] death[i] - 1 } } Thankyou for the tip about the random seed. Lucy -Original Message- From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Monday, 24 March 2014 4:12 PM To: Lucy Leigh Subject: Re: [R] Simulating

Re: [R] survfit question - Q1 and Q3 survival time?

2014-03-20 Thread Lucy Leigh
Excellent! Thank you for your help. -Original Message- From: Therneau, Terry M., Ph.D. [mailto:thern...@mayo.edu] Sent: Monday, 17 March 2014 11:15 PM To: Lucy Leigh; r-help@R-project.org Cc: David Winsemius Subject: Re: survfit question - Q1 and Q3 survival time? Try help

[R] survfit question - Q1 and Q3 survival time?

2014-03-14 Thread Lucy Leigh
Hello, I am using the function survfit in the 'survival' package. Calling the function produces the median survival time automatically, as below. sleepfit - survfit(Surv(timeb, death)~1) sleepfit Call: survfit(formula = Surv(timeb, death) ~ 1) records n.max n.start events median 0.95LCL

[R] Survfit Error

2014-03-05 Thread Lucy Leigh
Hi everyone, I am not new to R, but new to running survival models in R. I am trying to create some basic KM curves, using the following code: library(survival) library(KMsurv) (import data etc - basic right censored, with continuously observed time of death) sleepfit - survfit(Surv(timeb,

Re: [R] Help with installing a .tar.gz package on windows

2013-07-11 Thread Lucy Leigh
the time to write it all out for me. Regards, Lucy Leigh Prof Brian Ripley rip...@stats.ox.ac.uk 12/07/2013 6:03 am On 11/07/2013 20:21, David Winsemius wrote: On Jul 11, 2013, at 1:37 AM, Rolf Turner wrote: On 11/07/13 17:57, Prof Brian Ripley wrote: On 11/07/2013 01:22, David Winsemius

Re: [R] Help with installing a .tar.gz package on windows

2013-07-10 Thread Lucy Leigh
...@gmail.com 9/07/2013 5:30 pm Hi Lucy: Did you look at the R Installation and Administration manuals? There's a good section about installing on Windows via Rtools. On Mon, Jul 8, 2013 at 10:18 PM, Lucy Leigh lucy.le...@newcastle.edu.auwrote: Great thank you - are there any resources that step

[R] Help with installing a .tar.gz package on windows

2013-07-08 Thread Lucy Leigh
Hi, I have a source package that isn't available as a windows zip file. Can anyone explain to me how I can install this on my windows R platform? When I use the following code: install.packages(PReMiuM_3.0.21.tar.gz, type = source) I get this error message: * installing *source* package

Re: [R] Help with installing a .tar.gz package on windows

2013-07-08 Thread Lucy Leigh
Great thank you - are there any resources that step through how to use RTools to compile the source package and install it in R on (64-bit windows) ? Berend Hasselman b...@xs4all.nl 8/07/2013 6:38 pm On 08-07-2013, at 02:15, Lucy Leigh lucy.le...@newcastle.edu.au wrote: Hi, I have a source