โŒ

Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

R Survfit shows lower OS than PFS while data seems correct

I've tried to create a Kaplan Meier Analysis and get the 4 year PFS and OS. For some reason, the output is a lower OS at 1460 days (0.518) than PFS (0.546). Where is my mistake?

library(survival)
library(readxl)
library(survminer)
CTrial <- read_excel("trial 2023.xlsx",sheet = 2)

# Fit Kaplan-Meier survival curve
fit <- survfit(Surv(PFSMonth, Event_PFS) ~ 1, data = CTrial)
summary(fit)
fit <- survfit(Surv(OSMonth, Event_OS) ~ 1, data = CTrial)

##followed by a + if the subject was censored. Letโ€™s look at the first 10 observations:
##PFS
time <- CTrial$PFS
event <- CTrial$Event_PFS
Surv(time, event)[1:33]
summary(survfit(Surv(time, event) ~ 1, data = CTrial), times = 1460)

##OS
time <- CTrial$OS
event <- CTrial$Event_OS
Surv(time, event)[1:33]
summary(survfit(Surv(time, event) ~ 1, data = CTrial), times = 1460)

I already tried to analyze the data for possible entry errors, but it does not seem off.

These are the outputs from Surv(time, event)[1:33], + is censored:

These are the outputs from Surv(time, event)[1:33], + is censored

Thanks so much!

Nev: Let's see what Arsenal are made of | Liverpool have 'overachieved'

On a dramatic Super Sunday where Arsenal and Liverpoolโ€™s title challenges were significantly dented, Sky Sports pundit Gary Neville says the Gunners must show what they are made of against Bayern Munich - and feels Jurgen Kloppโ€™s side have "overachieved" this season.

Is there a way to access a variable from a acctual CHILD class?

ps: I dont want to acess a parent class var but rather an actual child class

How do I access the $table var from User class? I know it sounds silly but is there a way to access this child class var without declaring it in the Model class?

example if I comment public $table in Model class the code wont work anymore because this var "does not exist"

My point being: since this var is going to be "replaced" so why we suppose to declare it?

Thanks

class User extends Model {
    public $table = "User table";    
}
$user = new User();
$user->insertIntoDatabase();

class Model {  
public $table;

  public function insertIntoDatabase() {
  echo "Inserted into ". $this->table ." database <br>";
}
}
?>
โŒ
โŒ