Displaying 20 results from an estimated 110 matches similar to: "R-help: Censoring data (actually an optim issue"
2011 Nov 29
2
Parameters setting in functions optimization
Good afternoon everybody,
I'm quite new in functions optimization on R and, whereas I've read
lot's of function descriptions, I'm not sure of the correct settings for
function like "optimx" and "nlminb".
I'd like to minimize my parameters and the loglikelihood result of the
function.
My parameters are a mean distance of dispersion and a proportion of
2011 Aug 13
3
optimization problems
Dear R users
I am trying to use OPTIMX(OPTIM) for nonlinear optimization.
There is no error in my code but the results are so weird (see below).
When I ran via OPTIM, the results are that
Initial values are that theta0 = 0.6 1.6 0.6 1.6 0.7. (In fact true vales
are 0.5,1.0,0.8,1.2, 0.6.)
--------------------------------------------------------------------------------------------
>
2011 Aug 29
0
Error: Gradient function might be wrong ----- in OPTIMX
Dear R users
When I use OPTIMX with BFGS, I've got the following error message.
-----------------------------------------------------------------
> optimx(par=theta0, fn=obj.fy, gr=gr.fy, method="BFGS")
Error: Gradient function might be wrong - check it!
-----------------------------------------------------------------
So, I checked and checked my gradient function line by
2012 Apr 11
1
R-help; Censoring
Hello,
I wish to?censor 10% of my sample units of 50 from a Weibull distribution. Below is the code for it.
I will need to know whether what i have done is correct and if not, can i have any suggestion to improve it?
Thank you
?p=2;b=120
n=50
r=45
t<-rweibull(r,shape=p,scale=b)
meantrue<-gamma(1+(1/p))*b
meantrue
cen<- runif(n-r,min=0,max=meantrue)
cen
Chris Guure
Researcher,
2011 May 18
1
Constrainted Nonlinear Optimization - lack of convergence
Hello,
I am attempting to utilize the 'alabama' package to solve a constrained
nonlinear optimization problem.
The problem has both equality and inequality constraints (heq and hin
functions are used). All constraints are smooth, i.e. I can differentiate
easily to produce heq.jac and hin.jac functions.
My initial solution is feasible; I am attempting to maximize a function,
phi. As
2012 Apr 16
1
R: Help; error in optim
Hello,
When i run the code below from Weibull distribution with 30% censoring by using optim i get an error form R, which states that
Error in optim(start, fn = z, data = q, hessian = T) :?
? objective function in optim evaluates to length 25 not 1
can somebody?help me remove this error. Is my censoring approach correct.
n=25;rr=1000
p=1.5;b=1.2
for (i in 1:rr){
q<-c(t,cen)
2012 Sep 20
3
Problem with Newton_Raphson
Hello,
I have being trying to estimate the parameters of the?generalized?exponential distribution. The random number generation for the GE distribution is?x<-(-log(1-U^(1/p1))/b), where U stands for uniform dist. The data i have generated to estimate the parameters is right censored and the code is given below; The problem is that, the newton-Raphson approach isnt working and i do not know what
2016 Oct 08
4
optim(…, method=‘L-BFGS-B’) stops with an error message while violating the lower bound
Hello:
The development version of Ecdat on R-Forge contains a vignette
in which optim(?, method=?L-BFGS-B?) stops with an error message while
violating the lower bound.
To see all the details, try the following:
install.packages("Ecdat", repos="http://R-Forge.R-project.org")
Then do "help(pac=Ecdat)" -> "User guides, package
2011 Nov 10
3
optim seems to be finding a local minimum
Hello!
I am trying to create an R optimization routine for a task that's
currently being done using Excel (lots of tables, formulas, and
Solver).
However, otpim seems to be finding a local minimum.
Example data, functions, and comparison with the solution found in
Excel are below.
I am not experienced in optimizations so thanks a lot for your advice!
Dimitri
### 2 Inputs:
2008 May 08
1
cpower and censoring
I would like to do some power estimations for a log-rank two sample test
and cpower seems to fit the bill. I am getting confused though by the
man page and what the arguments actually mean. I am also not sure
whether cpower takes into account censoring or not.
Could anyone provide a simple example of how I would get the power for a
set control/non-control clinical trial where censoring occurs at
2011 Feb 17
1
censoring symbols on survfit plot
Hi, when ploting Kaplan-Meier estimate curves as below, the censoring symbols
(crosses) to not change thickness along the lines
plot(survfit(surv ~ I(x>=cut.off) ),lty=c(1,2), lwd=2)
is there any strightforward way to make it happen? thanks
robert
--
View this message in context: http://r.789695.n4.nabble.com/censoring-symbols-on-survfit-plot-tp3311283p3311283.html
Sent from the R help
2010 Sep 19
1
Weibull- Random Censoring
I generate random vector from Weibull distribution
sampWB <-urweibull(sampleSize, shape=shape.true, scale=scale.true, lb=0, ub=Inf)
how can I create subvector containing 30% of samplesize of sampWB which should be assigned as Censored data?
The probability for each value in sampWB can be uniform to be included in the subvector.
2008 Oct 28
2
Fitting weibull and exponential distributions to left censoring data
Dear R-users
I have some datasets, all left-censoring, and I would like to fit
distributions to (weibull,exponential, etc..). I read one solution using the
function survreg in the survival package. i.e
survreg(Surv(...)~1, dist="weibull") but it returns only the scale
parameter.
Does anyone know how to successfully fit the exponential, weibull etc...
distributions to left-censoring
2012 Feb 05
2
R-Censoring
Hi there,
can somebody give me a guide as to how to generate data from weibull
distribution with censoring
for example, the code below generates only failure data, what do i add to
get the censored data, either right or interval censoring
q<-rweibull(100,2,10).
Thank you
Grace Kam
student, University of Ghana
[[alternative HTML version deleted]]
2007 Jul 03
0
Statistics Question not R question: competing risks and non-informative censoring
All,
I am working with Emergency Department (ED) Length of Stay Data. The ED
visit can end in one of a variety of ways (Admit, discharge, transfer,
etc...) Initially, I have modeled the time to event by fitting a survival
model to the time the outcome of interest and treat all other outcomes as
censoring. However I recently came across the cmprsk package in R which
seems to be developed
2011 Oct 13
0
Question: Self selection bias and censoring in R
Hi All,
I am a relative newbie to R and have the following problem I was trying to solve. I had taken a look at the 'sample selection' package but was having trouble applying it to my use case and was wondering if anyone out there had done something similar and could share code or documentation either using this package or any other packages.
I have a website page that I am subjecting to
2005 May 18
1
Centos-announce censoring :-)
Hi!
I have a quick question about the centos-announce mailing list,
is there some guide as to what the subject lines of all the mails there
are (ie. for regexps)?
I want to filter everything that isn't related to CentOS 4 i386 out to
/dev/null...
Cheers and thanks,
MaZe.
2007 Jan 09
0
Random effects and level 1 censoring
I have a question about constructing the likelihood function where there
is censoring at level 1 in a two-level random effects sum.
In a conventional solution, the likelihood function is constructed using
the density for failures and the survivor function for (in this case,
right) censored results. Within (for example) an R environment, this is
easy to do and gives the same solution as survreg
2007 May 08
1
censoring
in R when carring out the log rank test is the censored variable denoted by 1 or 0 or its of no consequence.
thanks
---------------------------------
always stay connected to friends.
[[alternative HTML version deleted]]
2008 Jan 28
1
KM estimation for interval censoring?
Does anybody know if there is such a function to estimate the distribution
for interval censored data?
survfit doesn't work for this type of data as I tried various references.
[[alternative HTML version deleted]]