Run_Optimal_Pricing: Optimal Pricing

View source: R/Run_Optimal_Pricing.R

Run_Optimal_PricingR Documentation

Optimal Pricing

Description

This function conducts a uniform optimal pricing analysis on price survey data, the list of tested prices, and discounted purchase probabilities.

Usage

Run_Optimal_Pricing(
  survey_data,
  prices,
  probabilities,
  marketsize = 10000,
  resizepaper = 1.2
)

Arguments

survey_data

pricing survey data csv file

prices

vector of tested prices

probabilities

discounted purchase probabilities; one probability for each Likert point on the pricing survey questions.

marketsize

numeric value showing total size of the market, default value = 10000

resizepaper

How much larger should the pdf paper size be to fit everything?, default value = 1.2

Examples

## Not run: 
# This is the sample code to be copied and used in a new R Script:
# Make sure to change the prices vector to match the tested prices.
library(listentodata)
clear_console()
survey_data = load_csv_data()
prices = c(1.99,3.99,7.99,10.99,15.99,21.99,26.99)
probabilities = c(0, 0, 0, 0.2, 0.5)
marketsize = 10000
resizepaper = 1.2
Run_Optimal_Pricing(survey_data, prices, probabilities, marketsize, resizepaper)

## End(Not run)

1moein/listentodata documentation built on Nov. 14, 2024, 5:35 p.m.