check.rfcdata: Check RFC input data

View source: R/MPMcore.R

check.rfcdataR Documentation

Check RFC input data

Description

Assign ultasound data types for RFC building and validation.

Usage

check.rfcdata(x, levels = NULL, ...)

Arguments

x

An (n, 14) ultrasound features data.frame, where n is the number of subjects.

levels

A list of length 15, corresponding to the levels of each ultrasound variable plus the phenotype (y = 0, 1). Needed for categorical variables (factors) checking; for continuous variables, it should assume the nominal value of 0. If NULL (default), the mpm.levels object will be used.

...

Currently ignored.

Value

A data.frame of ultrasound features with checked data type.

Author(s)

Fernando Palluzzi fernando.palluzzi@gmail.com

See Also

buildPredictor.

Examples


# generate a dataset of 500 subjects
x <- mosaic::sample(mpm.us, 500, replace = FALSE, prob = NULL)
x <- x[, 2:16]

# Assign the correct data types for RFC building and validation
x <- check.rfcdata(x)
summary(x)


Morphonodepredictivemodel/morphonode documentation built on Feb. 15, 2023, 4:51 a.m.