Learn R Programming

dropR (version 1.0.3)

do_ks: 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)

Value

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

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.

Examples

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

do_ks(do_stats, 52)


Run the code above in your browser using DataLab