Displaying 20 results from an estimated 6000 matches similar to: "Interval censored Data in survreg() with zero values!"
2007 Nov 29
1
Survreg(), Surv() and interval-censored data
Can anybody give me a neat example of interval censored data analysis codes in R?
Given that suvreg(Surv(c(1,1,NA,3),c(2,NA,2,3),type="interval2")~1)
works why does
survreg(Surv(data[,1],data[,2],type="interval2")~1)
not work where
data is :
T.1 T.2 Status
1 0.0000000 0.62873036 1
2 0.0000000 2.07039068 1
3 0.0000000
2011 Dec 07
1
survreg() provides same results with different distirbutions for left censored data
Hello,
I'm working with some left censored survival data using accelerated failure
time models. I am interested in fitting different distributions to the data
but seem to be getting the same results from the model fit using survreg
regardless of the assumed distribution.
These two codes seem to provide the same results:
aft.gaussian <-
2006 Feb 13
2
Survreg(), Surv() and interval-censored data
Can survreg() handle interval-censored data like the documentation
says? I ask because the command:
survreg(Surv(start, stop, event) ~ 1, data = heart)
fails with the error message
Invalid survival type
yet the documentation for Surv() states:
"Presently, the only methods allowing interval censored data are
the parametric models computed by 'survreg'"
2001 Apr 02
2
Censored or truncated Regression Models/Tobit
Hi,
what is the best way to estimate a tobit(truncated) regression model in
R ?
Is there already a packet available ?
Gruss
Ralph Leonhardt
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body",
2011 Aug 26
2
How to generate a random variate that is correlated with a given right-censored random variate?
Hi,
I have a right-censored (positive) random variable (e.g. failure times subject to right censoring) that is observed for N subjects: Y_i, I = 1, 2, ..., N. Note that Y_i = min(T_i, C_i), where T_i is the true failure time and C_i is the censored time. Let us assume that C_i is independent of T_i. Now, I would like to generate another random variable U_i, I = 1, 2, ..., N, which is
2008 Apr 25
3
Use of survreg.distributions
Dear R-user:
I am using survreg(Surv()) for fitting a Tobit model of left-censored longitudinal data. For logarithmic transformation of y data, I am trying use survreg.distributions in the following way:
tfit=survreg(Surv(y, y>=-5, type="left")~x + cluster(id), dist="gaussian", data=y.data, scale=0, weights=w)
my.gaussian<-survreg.distributions$gaussian
2008 Oct 07
3
Fitting weibull, exponential and lognormal distributions to left-truncated data.
Dear All,
I have two questions regarding distribution fitting.
I have several datasets, all left-truncated at x=1, that I am attempting
to fit distributions to (lognormal, weibull and exponential). I had
been using fitdistr in the MASS package as follows:
fitdistr<-(x,"weibull")
However, this does not take into consideration the truncation at x=1. I
read another posting in this
2008 Jan 13
1
How to fit a Tobit model with observations censored at different values
Dear everyone:
I am a new user of R. I have a dataset with a dependent variable (DV) censored at different values. The dataset looks like,
conditions .....IDV1 IDV2 DV
1 2 4 89
1 6 6 75
1 4 5 0 ( DV<=70)
......
2 3 5 15
2 5 5 0
2008 Jan 23
2
Parametric survival models with left truncated, right censored data
Dear All,
I would like to fit some parametric survival models using left
truncated, right censored data in R. However I am having problems
finding a function to fit parametric survival models which can handle
left truncated data.
I have tested both the survreg function in package survival:
fit1 <- survreg(Surv(start, stop, status) ~ X + Y + Z, data=data1)
and the psm function in package
2008 Apr 08
1
Weibull maximum likelihood estimates for censored data
Hello!
I have a matrix with data and a column indicating whether it is censored
or not. Is there a way to apply weibull and exponential maximum
likelihood estimation directly on the censored data, like in the paper:
Backtesting Value-at-Risk: A Duration-Based Approach, P Chrisoffersen
and D Pelletier (October 2003) page 8?
The problem is that if I type out the code as below the likelihood
2005 Feb 24
2
survreg with gamma distribution: re-post
Dear r-help subscribers,
A couple of weeks ago I sent the following message to the r-help mail
list. It hasn't generated any response, and I could really use some help
on this. Anyone able to help?
Thanks again,
Roger Dungan
>>
I am working on some survival analysis of some interval censored failure
time data in R. I have done similar analysis before using PROC LIFEREG
in SAS. In
2009 Mar 08
2
survreg help in R
Hey all,
I am trying to use the survreg function in R to estimate the mean and
standard deviation to come up with the MLE of alpha and lambda for the
weibull distribution. I am doing the following:
times<-c(10,13,18,19,23,30,36,38,54,56,59,75,93,97,104,107,107,107)
censor<-c(1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0)
survreg(Surv(times,censor),dist='weibull')
and I get the following
2008 Jun 13
2
Maximum likelihood estimation in R with censored Data
Hello,
I'm trying to calculate the Maximum likelihood estimators for a dataset
which contains censored data.
I started by using the function "nlm", but isn't there a separate method
for doing this for e.g. the "weibull" and the "log-normal" distribution?
Thanks,
Olivia
[[alternative HTML version deleted]]
2006 Jan 19
2
Tobit estimation?
Folks,
Based on
http://www.biostat.wustl.edu/archives/html/s-news/1999-06/msg00125.html
I thought I should experiment with using survreg() to estimate tobit
models.
I start by simulating a data frame with 100 observations from a tobit model
> x1 <- runif(100)
> x2 <- runif(100)*3
> ystar <- 2 + 3*x1 - 4*x2 + rnorm(100)*2
> y <- ystar
> censored <- ystar <= 0
2003 Apr 20
1
survreg penalized likelihood?
What objective function is maximized by survreg with the default
Weibull model? I'm getting finite parameters in a case that has the
likelihood maximzed at Infinite, so it can't be a simple maximum
likelihood.
Consider the following:
#############################
> set.seed(3)
> Stress <- rep(1:3, each=3)
> ch.life <- exp(9-3*Stress)
> simLife <- rexp(9,
2001 Feb 07
5
zero inflated poisson and censored-continuous models
I wonder if there is a package that will estimate a Zero Inflated Poisson
Model (ZIP), and also if there is a package that will estimate what is
called the Tobit model: that is a combination of censored and observed
values in the same sample.
Georgina Bermann
Biostatistics
AstraZeneca R&D M?lndal
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing
2003 Jun 11
1
mixed-effects models for left-censored data?
Dear R-helpers,
excuse me if this is not exclusively an R-related question.
I have data from a nested design, both temporally and spatially, and the reponse variable of interest is left-censored. That is, only values > "some treshold" are available, otherwise "LOW" is reported.
Are there ways of building a linear model with both fixed and random effects, when the
2012 Jan 26
1
3-parametric Weibull regression
Hello,
I'm quite new to R and want to make a Weibull-regression with the survival package. I know how to build my "Surv"-object and how to make a standard-weibull regression with "survreg".
However, I want to fit a translated or 3-parametric weibull dist to account for a failure-free time.
I think I would need a new object in survreg.distributions, but I don't know how
2003 Feb 27
2
interval-censored data in survreg()
I am trying to fit a lognormal distribution on interval-censored
data. Some of my intervals have a lower bound of zero.
Unfortunately, it seems like survreg() cannot deal with lower
bounds of zero, despite the fact that plnorm(0)==0 and
pnorm(-Inf)==0 are well defined. Below is a short example to
reproduce the problem.
Does anyone know why survreg() must behave that way?
Is there an alternate
2012 Mar 06
1
Scale parameter in Weibull distribution
Hi all,
I'm trying to generate a Weibull distribution including four covariates in
the model. Here is the code I used:
T = rweibull(200, shape=1.3,
scale=0.004*exp(-(-2.5*b1+2.5*b2+0.9*x1-1.3*x2)/1.3))
C = rweibull(n, shape=1.5, scale=0.008) #censoring time
time = pmin(T,C) #observed time is min of censored and true
event = time==T # set to 1 if event is observed