Displaying 20 results from an estimated 100 matches similar to: "Tobit model and an error message"
2010 Oct 20
3
Plot creates a straigth line
Hello all, I am using 'plot' to create standard curves for elisa data. when I
use 'plot' with type='b' i get the points connected with lines and one
straigth line from the lowest datapoint to the highest data point. how can i
avoid/remove it from the figure. i am using R2.9.1, below is the example of
the data.
od<-c(10, 8, 6,4,2,1, 10.5,7.8,6.4,3.8,2.1,0.95)
2004 Nov 17
1
frailty and time-dependent covariate
Hello,
I'm trying to estimate a cox model with a frailty variable and time-dependent covariate (below there is the statement I use and the error message). It's seems to be impossible, because every time I add the time-dependent covariate the model doesn't converge. Instead, if I estimate the same model without the time-dependent covariate it's converge. I'd like knowing if
2011 Mar 10
2
tobit regression model
Hi,
I'm trying to fit a tobit regression model to some data. When fitting the
exact same data in Stata, I have no problems at all, however R won't
converge. Its not a maxiters thing, since I've tried increasing this
already. I need to be able to fit the model in R since there are users of
the code that don't have a Stata license.
The code is:
require(AER)
left = 3.218476
x =
2011 Apr 13
1
error for ttest
Hello all,
I have arranged my data as per Dennis's suggestion in this post
http://www.mail-archive.com/r-help at r-project.org/msg107156.html.
the posted code works fine but when I try to apply it to my data, i get ">
u2 <- ddply(xxm, .(plateid, cytokine), as.data.frame.function(f))
Error in t.test.formula(conc ~ Self_T1D, data = df, na.rm = T) :
grouping factor must have
2011 Sep 23
0
Using method = "aic" with pspline & survreg
--- begin inclusion --
Hi everybody. I'm trying to fit a weibull survival model with a spline
basis for the predictor, using the survival library. I've noticed that
it
doesn't seem to be possible to use the aic method to choose the degrees
of
freedom for the spline basis in a parametric regression (although it's
fine with the cox model, or if the degrees of freedom are specified
2001 Nov 12
2
check() warnings for survival-2.6
I am not sure if this is the right place for that kind of questions, but
I wondered
that the recommended package survival did not pass R's check procedure
without
warnings:
1) unbalanced braces:
* Rd files with unbalanced braces:
* man/Surv.Rd
* man/cluster.Rd
* man/cox.zph.Rd
* man/coxph.Rd
* man/coxph.detail.Rd
* man/date.ddmmmyy.Rd
* man/lines.survfit.Rd
*
2006 Sep 19
0
How to interpret these results from a simple gamma-frailty model
Dear R users,
I'm trying to fit a gamma-frailty model on a simulated dataset, with 6 covariates, and I'm running into some results I do not understand. I constructed an example from my simulation code, where I fit a coxph model without frailty (M1) and with frailty (M2) on a number of data samples with a varying degree of heterogeneity (I'm running R 2.3.1, running takes ~1 min).
2011 Mar 12
0
"Ran out of iterations and did not converge"
Hello R users,
I'm trying to do simulations for comparing cox and weibull
I have come across this problem:
Warning messages:
1: In survreg.fit(X, Y, weights, offset, init = init, controlvals = control,
:
Ran out of iterations and did not converge
2: In survreg.fit(X, Y, weights, offset, init = init, controlvals = control,
:
Ran out of iterations and did not converge
what i did is
2009 Apr 07
0
HELP: Use predict for Tobit Model. How to predict values in Tobit Model???
Hello,
I am working on a Tobit Model for a consumer good, left censored with zero.
Relation: Sales of product depend on price, promotion (dummy), Season(dummy)
and store (dummy)
Used standard Tobitmodel with package(AER) vor a 48 week period:
tobitmodel<-tobit(SALE~Price+Promotion+Season+Store,data= datatobit)
Now I want to predict the values for week 49-52.
Used predict device:
2010 Apr 16
1
R CMD check tells me 'no visible binding for globalvariable'
Henrik wrote:
I think what people are also thinking about is that the policy for
publishing a package on CRAN is that it have to pass R CMD check with
no errors, warnings *or* notes. So, in that sense notes are no
different from warnings.
---------------------------------
Getting rid of these notes would be very hard in the survival package.
The population survival routines (survexp, pyears)
2011 Feb 11
1
censReg or tobit: testing for assumptions in R?
Hello!
I'm thinking of applying a censored regression model to
cross-sectional data, using either the tobit (package survival) or the
censReg function (package censReg). The dependent variable is left and
right-censored.
My hopefully not too silly question is this: I understand that
heteroskedasticity and nonnormal errors are even more serious problems
in a censored regression than in an
2013 Sep 12
0
predict from tobit regression
Dear R experts,
I am currently working on a rather simple tobit regression, where the
dependet variable is left-censored (>0). I would like to apply a Tobit
regression and then use the parameters of this regression to make a
prediction with new data. The intention behind this is to do an
extrapolation.
by using the VGAM or AER package, I already succeeded in getting fitted
values. However
2003 Jul 16
1
Tobit analysis
Having read previous correspondance on this topic, am I right in using a
gaussian distribution for a tobit model, one article suggests a normal distribution?
Also, I want to censure at the upper bound, so, using the survival5 package I use:
survreg(Surv(y,y<c,type="right")~x) for a censored regression.
Could anybody who's had experience of this, confirm whether I'm in the
2008 Aug 16
1
Pseudo R2 for Tobit Regression
Dear All:
I need some guidance in calculating a goodness-of-fit statistic for a Tobit
Regression model.
To develop the Tobit regression, I used the tobit() method from the AER
package, which is basically a simpler interface to the survreg() method.
I've read about pseudo R2 and C-index and was wondering if there is a
package that calculates this for me. Also, is there a reason to select
2004 Feb 11
0
tobit Heteroscedasticity
What is command for tobit Heteroscedasticity?
FErnando Freitas
[[alternative HTML version deleted]]
2010 Jun 30
0
longitudinal tobit regression in R
Hi,
I am trying to model a score over time. This score shows a ceiling effect. I was
willing to use a longitudinal tobit model, such as the one described by Twisk et
al. (Twisk_Longitudinal tobit regression: A new approach to analyze outcome
variables with floor or ceiling effects_JCE_2009) but it is programmed for
STATA.
Has anyone used such models in R?
Any other idea?
David Biau.
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 Jul 12
1
fixed effects Tobit, Honore style?
Hi all,
Is there any code to run fixed effects Tobit models in the style of Honore
(1992) in R?
(The original Honore article is here:
http://www.jstor.org/sici?sici=0012-9682%28199205%2960%3A3%3C533%3ATLALSE%3E2.0.CO%3B2-2)
Cheers
David
[[alternative HTML version deleted]]
2012 Nov 28
0
Fixed Effects using AER's Tobit function - system is singular
I have an unbalanced panel of daily, county data that is naturally bounded at
zero so my intention is to use a tobit. I'm using tobit from the AER
package. There is cyclicality in the data for each pattern that I would like
to control for before I add my variables of interest.
I run the regression:
derp <- tobit(x ~ factor(Month)*factor(County), data = data0, left = 0,
right = Inf)
If I
2008 Feb 07
2
Tobit model
Hi all,
Quick question - Which, if any, of the R packages contains procedures for running Tobit analysis?
Regards,
Matt
---------------------------------
[[alternative HTML version deleted]]