CausataVariable.
Note that the variable names in the data frame must match
CausataData(dataframe, dependent.variable=NULL, query=NULL)dataframe must have a column named dependent.variable.Query object that can be stored with the data.CausataData returns an object of class CausataData. The object has the following fields:GetQuery returns the query object.
CausataVariable class.
The CausataData object is passed into ToPMML to create a PMML representation of a model. Note that column names in the dataframe have to follow Causata naming conventions so that they can be matched to
variables in Causata when scoring. See RToCausataNames for details.
Columns that do not follow conventions will remain in the data frame, but will not
have a corresponding CausataVariable generated.
The dependent variable name is set depending on the dependent.variable argument:
CausataVariable, ToPmml, Query, RToCausataNames.
df <- data.frame(f1__AP=factor(c("a","b",NA)), f2__AP=factor(c("x","y",NA)))
causataData <- CausataData(df, rep(0,nrow(df)))
Run the code above in your browser using DataLab