do_ks {dropR}R Documentation

Compute Kolmogorov-Smirnov Test for most extreme conditions

Description

This test is used for survival analysis between the most extreme conditions, so the ones with the most different rates of dropout. This function automatically prepares your data and runs stats::ks.test() on it.

Usage

do_ks(do_stats, question)

Arguments

do_stats

A data frame made from compute_stats(), containing information on the percent remaining per question per condition

question

Index of question to be included in analysis, commonly the last question of the survey.

Value

Returns result of Kolmogorov-Smirnoff test including which conditions have the most different dropout rates.

Examples

do_stats <- compute_stats(df = add_dropout_idx(dropRdemo, 3:54),
by_cond = "experimental_condition",
no_of_vars = 52)

do_ks(do_stats, 52)



[Package dropR version 1.0.3 Index]