Quantcast
Channel: SCN : All Content - SAP BusinessObjects Predictive Analytics
Viewing all articles
Browse latest Browse all 836

Custom R Component - Measures of Location (Mean, Standard Deviation...)

$
0
0

This component extends the capabilities of SAP Predictive Analysis and calculates certain measures of location:

- Mean

- Confidence Interval of the Mean

- Standard Deviation

- Minimum

- Maximum

- Total Record Count

- Record Count of non-null Values

d2.JPG

 

Prerequisites

The dataset must contain at least one numerical column, which will be described with the measures of location.

 

Usage

 

These parameters can be set by the user.

ParameterDescription
Group by ColumnName of categorical column for level-based statistics. Calculates the measures of location for each subgroup. If the column "Country" is selected for instance, then individual statistics will be calculated for each country, ie Switzerland, China and Brasil.
Measure(s) to DescribeNames of one or more numerical column that are to be described, ie Revenue, Duration, etc.
Calculate Overall StatisticsControls whether the overall statistics of the unfiltered dataset are to be calculated.
Confidence Level for Mean IntervalConfidence level for calculating the lower and upper limits of the mean interval.

 

Output Columns

ColumnDescription
GroupByColumnThe levels of the group by column which is described by the row, ie Switzerland, China or Brazil. The statistics of the unfiltered dataset (if selected) is labelled "OVERALL".
MeasureName of the measure that is described in the row.
MeanMean.
SDStandard Deviation.
MinMinimum.
MaxMaximum.
CountRow count.
CountNotNARow count of non-null values.
MeanConfidenceLevelConfidence level for the mean interval as entered by the user.
MeanCILLLower limit of the mean's confidence interval.
MeanCIULUpper limit of the mean's confidence interval.

 

 

How to Implement

The component is attached to this article. Download and unzip the file. You will see a Text file. Rename its .txt extension to .zip and unpack the new file as well. The content of the .zip file is the Custom R Component. These steps are needed as SCN does not allow the attachment of the component's original file type.

 

Then deploy the component as described here. You just need to copy the attached content in a folder described in the article and restart SAP Predictive Analysis.

 

Example

Let's try this component on the responses of a customer survey carried out by the airport of San Francisco. Download the dataset from the year 2011, load the data with SAP Predictive Analysis and add the "Measures of Location" component to the dataflow.

 

02.JPG

 

Configure the component to

- analyse the satisfaction with SFO Airport as a whole (column "Q8N").

- calculate the measures of location by the respondent’s country of residence (column "Q18COUNTRY").

- calculate also the overall measures of location for the unfiltered dataset.

 

03.JPG

 

Run the component and see the output.

04.JPG

 

You can further process the results, for instance by graphically analysing them with SAP Predictive Analysis.

05.JPG

 

Disclaimer

Please note that this component is provided as-is without any guarantee or support.


Viewing all articles
Browse latest Browse all 836

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>