Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


RSofia (version 1.1)

parse_formula: parse a Dataframe for use with "sofia.fit"

Description

Function for parsing Dataframe for use with "sofia.fit".

Usage

parse_formula(formula, data)

Arguments

formula
an object of class "formula"
data
a data frame

Value

returns a list containing the following components:
data
a numeric matrix. The explanatory variables for the model
labels
a numeric vector. The response variable

See Also

Examples

Run this code

data(irismod)
parse_formula(Is.Virginica ~ . , irismod)

Run the code above in your browser using DataLab