prepare.data: Prepare dataset to be used in 'relative.importance'

Description Usage Arguments Value Author(s) Examples

Description

Prepares datasets to be in the format required by the function relative.importance. It is automatically called by relative.importance.

Usage

1
prepare.data(dataset)

Arguments

dataset

A data frame with 4 columns only, in the following order: 1: student's ID, 2: class, 3: transition (0 if not, 1 if yes) and 4: performance score.

Value

dataset

The data frame given as the argument, with column names changed and missing values removed.

Author(s)

Christiana Kartsonaki

Examples

1
2
3
4
5
6
# generate a dataset
data <- data.frame(seq(1:10), rep(c(1, 2, 3), length.out = 10), 
	rbinom(1, n = 10, p = 0.7), c(rnorm(8, 0, 1), NA, NA))

# run function
data_clean <- prepare.data(data)

DECIDE documentation built on May 2, 2019, 3:06 p.m.