|
statcpp
C++17 Header-Only Statistics Library
|
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. | |
Log-rank test result.
Holds the results of comparing survival curves between two groups.
Definition at line 161 of file survival.hpp.
| std::size_t statcpp::logrank_result::df |
Degrees of freedom.
Definition at line 164 of file survival.hpp.
| double statcpp::logrank_result::expected1 |
Expected number of events in group 1.
Definition at line 165 of file survival.hpp.
| double statcpp::logrank_result::expected2 |
Expected number of events in group 2.
Definition at line 166 of file survival.hpp.
| std::size_t statcpp::logrank_result::observed1 |
Observed number of events in group 1.
Definition at line 167 of file survival.hpp.
| std::size_t statcpp::logrank_result::observed2 |
Observed number of events in group 2.
Definition at line 168 of file survival.hpp.
| double statcpp::logrank_result::p_value |
p-value
Definition at line 163 of file survival.hpp.
| double statcpp::logrank_result::statistic |
Test statistic (chi-square)
Definition at line 162 of file survival.hpp.