search for: lung2

Displaying 8 results from an estimated 8 matches for "lung2".

Did you mean: lung
2018 Mar 05
2
backquotes and term.labels
A user reported a problem with the survdiff function and the use of variables that contain a space.? Here is a simple example.? The same issue occurs in survfit for the same reason. lung2 <- lung names(lung2)[1] <- "in st"?? # old name is inst survdiff(Surv(time, status) ~ `in st`, data=lung2) Error in `[.data.frame`(m, ll) : undefined columns selected In the body of the code the program want to send all of the right-hand side variables forward to the strata() func...
2011 Jul 08
1
survConcordance with 'counting' type Surv()
...that with left truncation the ordering of individuals might change over time as the baseline hazard is no longer monotonic. So ordering based on just the linear predictors would not be appropriate but risk to t should be used (after choosing a t). Am I wrong? Example: lung$time2=lung$time/365 lung2=na.omit(lung) # the usual c-index fit1 <- coxph(Surv(time, status) ~ ph.ecog+ph.karno+pat.karno+meal.cal+wt.loss + age + sex, lung2) survConcordance(Surv(time, status) ~predict(fit1), lung2) # and the corresponding c-index for start, stop data (counting) fit2 <- coxph(Surv(age,age+time2, s...
2018 Mar 07
1
backquotes and term.labels
...l at r-project.org <mailto:r-devel at r-project.org>> wrote: > > A user reported a problem with the survdiff function and the use of variables that > contain a space.? Here is a simple example.? The same issue occurs in survfit for the > same reason. > > lung2 <- lung > names(lung2)[1] <- "in st"?? # old name is inst > survdiff(Surv(time, status) ~ `in st`, data=lung2) > Error in `[.data.frame`(m, ll) : undefined columns selected > > In the body of the code the program want to send all of the right-hand sid...
2018 Mar 08
4
Fwd: Re: [EXTERNAL] Re: backquotes and term.labels
...t;> >>> A user reported a problem with the survdiff function and the use of >>> variables that >>> contain a space. Here is a simple example. The same issue occurs in >>> survfit for the >>> same reason. >>> >>> lung2 <- lung >>> names(lung2)[1] <- "in st" # old name is inst >>> survdiff(Surv(time, status) ~ `in st`, data=lung2) >>> Error in `[.data.frame`(m, ll) : undefined columns selected >>> >>> In the body of the code the pro...
2018 Mar 05
0
backquotes and term.labels
...at 12:55 PM, Therneau, Terry M., Ph.D. via R-devel < r-devel at r-project.org> wrote: > A user reported a problem with the survdiff function and the use of > variables that contain a space. Here is a simple example. The same issue > occurs in survfit for the same reason. > > lung2 <- lung > names(lung2)[1] <- "in st" # old name is inst > survdiff(Surv(time, status) ~ `in st`, data=lung2) > Error in `[.data.frame`(m, ll) : undefined columns selected > > In the body of the code the program want to send all of the right-hand > side variables...
2018 Mar 08
1
Fwd: Re: [EXTERNAL] Re: backquotes and term.labels
...he use of >>>>> variables that >>>>> contain a space. Here is a simple example. The same issue occurs >>>>> in >>>>> survfit for the >>>>> same reason. >>>>> >>>>> lung2 <- lung >>>>> names(lung2)[1] <- "in st" # old name is inst >>>>> survdiff(Surv(time, status) ~ `in st`, data=lung2) >>>>> Error in `[.data.frame`(m, ll) : undefined columns selected >>>>> >>&gt...
2018 Mar 08
0
Fwd: Re: [EXTERNAL] Re: backquotes and term.labels
...a problem with the survdiff function and the use of >>>> variables that >>>> contain a space. Here is a simple example. The same issue occurs >>>> in >>>> survfit for the >>>> same reason. >>>> >>>> lung2 <- lung >>>> names(lung2)[1] <- "in st" # old name is inst >>>> survdiff(Surv(time, status) ~ `in st`, data=lung2) >>>> Error in `[.data.frame`(m, ll) : undefined columns selected >>>> >>>> In the body...
2023 Oct 31
1
weights vs. offset (negative binomial regression)
[Please keep r-help in the cc: list] I don't quite know how to interpret the difference between specifying effort as an offset vs. as weights; I would have to spend more time thinking about it/working through it than I have available at the moment. I don't know that specifying effort as weights is *wrong*, but I don't know that it's right or what it is doing: if I were