View source: R/Run_Optimal_Pricing.R
Run_Optimal_Pricing | R Documentation |
This function conducts a uniform optimal pricing analysis on price survey data, the list of tested prices, and discounted purchase probabilities.
Run_Optimal_Pricing(
survey_data,
prices,
probabilities,
marketsize = 10000,
resizepaper = 1.2
)
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 |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.