statcpp
C++17 Header-Only Statistics Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
statcpp::logrank_result Struct Reference

Log-rank test result. More...

#include <survival.hpp>

Public Attributes

double statistic
 Test statistic (chi-square)
 
double p_value
 p-value
 
std::size_t df
 Degrees of freedom.
 
double expected1
 Expected number of events in group 1.
 
double expected2
 Expected number of events in group 2.
 
std::size_t observed1
 Observed number of events in group 1.
 
std::size_t observed2
 Observed number of events in group 2.
 

Detailed Description

Log-rank test result.

Holds the results of comparing survival curves between two groups.

Definition at line 161 of file survival.hpp.

Member Data Documentation

◆ df

std::size_t statcpp::logrank_result::df

Degrees of freedom.

Definition at line 164 of file survival.hpp.

◆ expected1

double statcpp::logrank_result::expected1

Expected number of events in group 1.

Definition at line 165 of file survival.hpp.

◆ expected2

double statcpp::logrank_result::expected2

Expected number of events in group 2.

Definition at line 166 of file survival.hpp.

◆ observed1

std::size_t statcpp::logrank_result::observed1

Observed number of events in group 1.

Definition at line 167 of file survival.hpp.

◆ observed2

std::size_t statcpp::logrank_result::observed2

Observed number of events in group 2.

Definition at line 168 of file survival.hpp.

◆ p_value

double statcpp::logrank_result::p_value

p-value

Definition at line 163 of file survival.hpp.

◆ statistic

double statcpp::logrank_result::statistic

Test statistic (chi-square)

Definition at line 162 of file survival.hpp.


The documentation for this struct was generated from the following file: