Displaying 3 results from an estimated 3 matches for "failtim".
Did you mean:
failtime
2006 May 04
0
Eliminating For Loop in Comparison and Replacement
Hi,
I have two dataframes: (Fails, Refurb) each is identical in structure.
The structure has columns consisting of the following: EquipID(Equipment
Identification), CustID(Customer Identification), FailTimes(Time
Equipment Failed). The for loop below is part of a larger Monte Carlo
simulation involving the reliability of equipment and customers.
for (i in 1:length(Fails$CustID)){
j<-1
while (j <= length(Refurb$CustID)){
if (Refurb$FailTimes[j] < Fails$FailTimes[i]){
CustRe...
2010 Dec 05
0
Help with time varying covariate-unfold function
...I am trying to use the unfold function in RcmdrPlugin.survival library,
which converts the survival data with time varying covariates to the
counting process notation. The problem is somehow, the event indicator
created is not correct.
Below is the data, I am trying to convert:
CASE TRT FAILTIME FAILCENS SEX AGE IGG0 IGG28 IGG42 IGG84 IGG364
26003 A 11.2033 2 1 43.9535 0 80 80
320 NA
IGG0 to IGG364 are my time varying covariates and FAILCENS = 2 indicates
observed times. So, when I tried to use,
igg2.long<-unfold(igg.2[3,],...
2004 Mar 04
0
passing a formula to coxph() along with a ...
...la to a function along with a ...? I
have a function:
func <- function(coxformula, data = parent.frame(),...) {
# Cut to relevant part of function
coxmod <- coxph(formula=coxformula, data=dataframe,...)
resids <- residuals(coxmod,'dfbeta')
}
I use the function call:
func(Surv(failtime,cancer)~smoke,dataframe=dataset,robust=TRUE)
The coxph() evaluates properly. But the error is in evaluating the
residuals():
Error in model.frame(formula = coxformula, data = dataframe, :
Object "coxformula" not found
When using recover(), the error upon running the residuals func...