Description Usage Arguments Details Value Author(s) See Also Examples
Used for creating an object of class CausataData for scoring in Causata.
This is essentially a dataframe with modeling data and a list of objects of class CausataVariable
.
Note that the variable names in the data frame must match
1 | CausataData(dataframe, dependent.variable=NULL, query=NULL)
|
dataframe |
A data frame containing independent variables for modeling. |
dependent.variable |
An array of dependent variable values, or the name
of a column in the data frame that will be used as the dependent variable.
If NULL then |
query |
An optional |
A CausataData object is a container for objects from the 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:
If a name is provided then that is used.
If a vector of data is provided then the name attribute of the vector will be used. If the name attribute is not set then the default name of "dependent.variable" will be used.
CausataData
returns an object of class CausataData. The object has the following fields:
df |
The dataframe. If there is not a column for the dependent variable then it is added. |
variableList |
A list of variables of class |
dvName |
The name of the dependent variable. |
skippedVariables |
Variables in |
query |
The object passed in through the query argument is stored here. |
GetQuery
returns the query object.
Justin Hemann <support@causata.com>
CausataVariable
, ToPmml
, Query
, RToCausataNames
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.