Title: | Nonparametric Tests for Main Effects, Simple Effects and Interaction Effect in a Factorial Design with Censored Data |
---|---|
Description: | Nonparametric Tests for Main Effects, Simple Effects and Interaction Effect with Censored Data and Two Factorial Influencing Variables. |
Authors: | Christine Kroener [aut, cre], Sarah Friedrich [aut] |
Maintainer: | Christine Kroener <[email protected]> |
License: | GPL-2 |
Version: | 0.1.0 |
Built: | 2024-12-07 06:38:44 UTC |
Source: | CRAN |
The nparsurv_test
function calculates the test statistics and the p-values as described in 'Nonparametric Methods for Factorial Designs with Censored Data'
by Akritas and Brunner.
nparsurv_test(data)
nparsurv_test(data)
data |
A
Missing values must be saved as |
The package provides tests for a survival setting with two influencing variables, that are factors with at
least two levels each. Details are shown in 'Nonparametric Methods for Factorial Designs with Censored Data' by Akritas
and Brunner.
The nparsurv_test
function returns the values of the five test statistics: the tests for main effects, simple effects
and the interaction effect. Additionally, based on the asymptotic chi-square distribution of the test statistic under the nullhypothesis, p-values are computed.
A nparsurv_test
object containing the following components:
maineffectA / maineffectB |
The test statistic and p-value for the nullhypotheses 'no main effect of factor A' and 'no main effect of factor B' respectively. |
simpleeffectA / simpleeffectB |
The test statistic and p-value for the null hypotheses 'no simple effect of factor A' and 'no simple effect of factor B' respectively. |
interactioneffect |
The test statistic and p-value for the null hypothesis 'no interaction effect between factor A and factor B'. |
Michael G. Akritas, Edgar Brunner(1997). Nonparametric Methods for Factorial Designs with Censored Data. Journal of the American Statistical Association.
data_ovarian<-data.frame(survival::ovarian$futime, survival::ovarian$fustat, as.factor(survival::ovarian$resid.ds), as.factor(survival::ovarian$rx)) nparsurv_test(data_ovarian) data_GBSG2<-data.frame(TH.data::GBSG2$time, TH.data::GBSG2$cens, TH.data::GBSG2$tgrade, TH.data::GBSG2$horTh) nparsurv_test(data_GBSG2)
data_ovarian<-data.frame(survival::ovarian$futime, survival::ovarian$fustat, as.factor(survival::ovarian$resid.ds), as.factor(survival::ovarian$rx)) nparsurv_test(data_ovarian) data_GBSG2<-data.frame(TH.data::GBSG2$time, TH.data::GBSG2$cens, TH.data::GBSG2$tgrade, TH.data::GBSG2$horTh) nparsurv_test(data_GBSG2)