{"size":{"Width":750,"Height":390},"appearance":{"background":null,"padding":14,"font":{"family":"Open Sans","size":10.0,"bold":false,"italic":false,"underline":false,"strikeout":false,"color":"rgba(0,0,0,1)"},"border":{"on":true,"size":0.0,"style":"solid","color":"#666"},"text":{"wrap":true,"hAlign":"Left","vAlign":"Top","resize":"ResizeShapeToFitText"}},"outputType":"TABLE","widgetStateDict":{},"wikiPageTitle":null,"hasReferences":{"propertyAppearanceFont":false,"propertyAppearanceParagraph":false,"propertyAppearanceWrap":false,"propertyAppearanceBorder":false,"propertyAppearanceBackgroundColor":false,"propertyFilters":false,"propertyWeight":false},"hasChartData":true,"useFastExecutor":true,"outputs":{"text":"loading...","table":"<table class=\"qtable style-97ba0187-37c0-47a1-a4ad-31b0f5281e77-1-_-_ freeze-panes exportarea\" id=\"T0b671391-acb7-4b13-a092-ee6d5cddc58d\" cellspacing=\"0\" cellpadding=\"0\">\r\n<tr class=\"first-header-row last-header-row header-row\"><th class=\"topLeft\" style=\"min-width: 0px;\"><div class=\"statisticsInHeader\"><span class=\"statname\"></span></div></th><th class=\"colHeader code colHeader-0 col-even numberDataHeader lastCol\" style=\"min-width: 0px;\" title=\"\"><div class=\"header-text-lines-container\"><div><span></span></div></div></th></tr>\r\n<tr class=\"row-0 row-even data single-series\"><th class=\"rowHeader rowHeader-0\" title=\"$0.99\">$0.99</th><td class=\"value cell cell-0-0 col-0 col-even lastCol\" data-oi-font-color=\"rgba(0, 0, 0, 1)\">.424</td></tr>\r\n<tr class=\"row-1 row-odd data single-series\"><th class=\"rowHeader rowHeader-1\" title=\"$1.49\">$1.49</th><td class=\"value cell cell-1-0 col-0 col-even lastCol\" data-oi-font-color=\"rgba(0, 0, 0, 1)\">.351</td></tr>\r\n<tr class=\"row-2 row-even data single-series\"><th class=\"rowHeader rowHeader-2\" title=\"$1.99\">$1.99</th><td class=\"value cell cell-2-0 col-0 col-even lastCol\" data-oi-font-color=\"rgba(0, 0, 0, 1)\">.343</td></tr>\r\n<tr class=\"row-3 row-odd data single-series\"><th class=\"rowHeader rowHeader-3 lastRow\" title=\"$2.49\">$2.49</th><td class=\"value cell cell-3-0 col-0 col-even lastCol lastRow\" data-oi-font-color=\"rgba(0, 0, 0, 1)\">.274</td></tr>\r\n</table>\r\n","qstylerender":"true","sortandfilterstate":"{\"RowHeaders\":[],\"HeadersSortFilterValidity\":{\"IsColumnHeadersSortable\":true,\"IsColumnHeadersFilterable\":true,\"IsRowHeadersSortable\":false,\"IsRowHeadersFilterable\":false},\"HeaderSortFilterSetting\":{\"EnableColumnHeadersSort\":true,\"EnableColumnHeadersFilter\":true,\"EnableRowHeadersSort\":false,\"EnableRowHeadersFilter\":false},\"ColumnHeaders\":[{\"Index\":0,\"ElementId\":\"StatisticsElement0\",\"SortDirection\":\"None\",\"Filter\":null}],\"ColumnHeadersHidden\":true}","paginationstate":"null","truncationstate":"null"},"secondsTaken":1.2968922,"updated":"2019-12-06T04:59:08.3994866Z","LastUpdatedMessage":null,"executedCode":"scenario = list('Alternative 1' = c('Brand' = cBrand.1,'Price' = cPrice.1,'Cocoa strength' = cCocoa_strength.1,'Sugar' = cSugar.1,'Origin' = cOrigin.1,'Nuts' = cNuts.1,'Ethical' = cEthical.1),\n'Alternative 2' = c('Brand' = cBrand.2,'Price' = cPrice.2,'Cocoa strength' = cCocoa_strength.2,'Sugar' = cSugar.2,'Origin' = cOrigin.2,'Nuts' = cNuts.2,'Ethical' = cEthical.2),\n'Alternative 3' = c('Brand' = cBrand.3,'Price' = cPrice.3,'Cocoa strength' = cCocoa_strength.3,'Sugar' = cSugar.3,'Origin' = cOrigin.3,'Nuts' = cNuts.3,'Ethical' = cEthical.3),\n'Alternative 4' = c('Brand' = cBrand.4,'Price' = cPrice.4,'Cocoa strength' = cCocoa_strength.4,'Sugar' = cSugar.4,'Origin' = cOrigin.4,'Nuts' = cNuts.4,'Ethical' = cEthical.4))\nprices = c(\"$0.99\", \"$1.49\", \"$1.99\", \"$2.49\") \ndemand = rep(NA, length(prices)) \nnames(demand) = prices\nfor (price in prices) # looping through the price pints\n{\n scenario[[\"Alternative 3\"]][\"Price\"] = price\n demand[price] = colMeans(predict(choice.model.1, scenario))[\"Alternative 3\"]\n }\nhershey.demand = demand","lastSavedCode":null,"isStandardRItem":false,"highlightedCodeSpans":[{"Range":{"StartLineNumber":1,"StartColumnNumber":47,"EndLineNumber":1,"EndColumnNumber":55},"Reference":"dbd2d50f-f6a1-4dc9-a091-3e5b3a05cc03","Type":2,"Text":"cBrand.1","Color":0},{"Range":{"StartLineNumber":1,"StartColumnNumber":66,"EndLineNumber":1,"EndColumnNumber":74},"Reference":"3ca36b92-5aaf-454e-9fba-a98693f58c7e","Type":2,"Text":"cPrice.1","Color":1},{"Range":{"StartLineNumber":1,"StartColumnNumber":94,"EndLineNumber":1,"EndColumnNumber":111},"Reference":"112b426d-5ebf-407e-9a8c-b3d80cb63afb","Type":2,"Text":"cCocoa_strength.1","Color":2},{"Range":{"StartLineNumber":1,"StartColumnNumber":122,"EndLineNumber":1,"EndColumnNumber":130},"Reference":"f31072f3-ed22-4b11-b8fb-e6c30b53262f","Type":2,"Text":"cSugar.1","Color":3},{"Range":{"StartLineNumber":1,"StartColumnNumber":142,"EndLineNumber":1,"EndColumnNumber":151},"Reference":"ba9da61c-1fd6-4fa2-861c-0649e9455363","Type":2,"Text":"cOrigin.1","Color":4},{"Range":{"StartLineNumber":1,"StartColumnNumber":161,"EndLineNumber":1,"EndColumnNumber":168},"Reference":"29f55c4a-04e9-47c3-b9ed-1d03e0cc1f60","Type":2,"Text":"cNuts.1","Color":5},{"Range":{"StartLineNumber":1,"StartColumnNumber":181,"EndLineNumber":1,"EndColumnNumber":191},"Reference":"e5688ae4-4769-46c6-9125-3ad3cddce30c","Type":2,"Text":"cEthical.1","Color":6},{"Range":{"StartLineNumber":2,"StartColumnNumber":31,"EndLineNumber":2,"EndColumnNumber":39},"Reference":"054487cf-2513-43e7-b130-db9e327660cc","Type":2,"Text":"cBrand.2","Color":7},{"Range":{"StartLineNumber":2,"StartColumnNumber":50,"EndLineNumber":2,"EndColumnNumber":58},"Reference":"e67524f0-71d0-46ce-98d7-f6dbe58893f3","Type":2,"Text":"cPrice.2","Color":8},{"Range":{"StartLineNumber":2,"StartColumnNumber":78,"EndLineNumber":2,"EndColumnNumber":95},"Reference":"ffbe2bf6-4b77-4518-b6ed-84cbeefc4335","Type":2,"Text":"cCocoa_strength.2","Color":9},{"Range":{"StartLineNumber":2,"StartColumnNumber":106,"EndLineNumber":2,"EndColumnNumber":114},"Reference":"10639e69-8843-4fa7-89bc-50415e108826","Type":2,"Text":"cSugar.2","Color":10},{"Range":{"StartLineNumber":2,"StartColumnNumber":126,"EndLineNumber":2,"EndColumnNumber":135},"Reference":"b64513a4-c8a2-4de4-821c-781f64885b5f","Type":2,"Text":"cOrigin.2","Color":11},{"Range":{"StartLineNumber":2,"StartColumnNumber":145,"EndLineNumber":2,"EndColumnNumber":152},"Reference":"6de8a09c-f56f-4389-849d-c09bd2fa4223","Type":2,"Text":"cNuts.2","Color":12},{"Range":{"StartLineNumber":2,"StartColumnNumber":165,"EndLineNumber":2,"EndColumnNumber":175},"Reference":"41dce8e2-b407-40e8-b9a1-3fe9fdc0f257","Type":2,"Text":"cEthical.2","Color":13},{"Range":{"StartLineNumber":3,"StartColumnNumber":31,"EndLineNumber":3,"EndColumnNumber":39},"Reference":"45f69542-c7aa-47c0-94af-cd1b95b43964","Type":2,"Text":"cBrand.3","Color":14},{"Range":{"StartLineNumber":3,"StartColumnNumber":50,"EndLineNumber":3,"EndColumnNumber":58},"Reference":"ed370386-61f3-48bc-9a33-03cfa8dcb3d7","Type":2,"Text":"cPrice.3","Color":15},{"Range":{"StartLineNumber":3,"StartColumnNumber":78,"EndLineNumber":3,"EndColumnNumber":95},"Reference":"ff6060f8-1fee-4617-860a-f4a41ad26b49","Type":2,"Text":"cCocoa_strength.3","Color":16},{"Range":{"StartLineNumber":3,"StartColumnNumber":106,"EndLineNumber":3,"EndColumnNumber":114},"Reference":"e4422c4c-ed5b-45d6-b5c0-e01e619f8cb9","Type":2,"Text":"cSugar.3","Color":17},{"Range":{"StartLineNumber":3,"StartColumnNumber":126,"EndLineNumber":3,"EndColumnNumber":135},"Reference":"eb5bdf57-8e5e-4414-b6f1-03d6e5a66bf2","Type":2,"Text":"cOrigin.3","Color":18},{"Range":{"StartLineNumber":3,"StartColumnNumber":145,"EndLineNumber":3,"EndColumnNumber":152},"Reference":"36c2125d-623f-49a1-bcd3-1c76718d0d35","Type":2,"Text":"cNuts.3","Color":19},{"Range":{"StartLineNumber":3,"StartColumnNumber":165,"EndLineNumber":3,"EndColumnNumber":175},"Reference":"00f6b449-4f57-4fe5-8344-de594597479b","Type":2,"Text":"cEthical.3","Color":20},{"Range":{"StartLineNumber":4,"StartColumnNumber":31,"EndLineNumber":4,"EndColumnNumber":39},"Reference":"5e2d0951-20c8-41a5-9332-e2d38e41a6a8","Type":2,"Text":"cBrand.4","Color":21},{"Range":{"StartLineNumber":4,"StartColumnNumber":50,"EndLineNumber":4,"EndColumnNumber":58},"Reference":"d513e0df-5eab-4025-a30a-59bc2a550b1a","Type":2,"Text":"cPrice.4","Color":22},{"Range":{"StartLineNumber":4,"StartColumnNumber":78,"EndLineNumber":4,"EndColumnNumber":95},"Reference":"10984e70-1f02-43d7-aaaa-387ad4ceea3d","Type":2,"Text":"cCocoa_strength.4","Color":23},{"Range":{"StartLineNumber":4,"StartColumnNumber":106,"EndLineNumber":4,"EndColumnNumber":114},"Reference":"b71a2e72-8c79-415b-a40b-1f52852b5ca8","Type":2,"Text":"cSugar.4","Color":24},{"Range":{"StartLineNumber":4,"StartColumnNumber":126,"EndLineNumber":4,"EndColumnNumber":135},"Reference":"f779dae8-75fe-44c1-a300-1fd44ae021b4","Type":2,"Text":"cOrigin.4","Color":25},{"Range":{"StartLineNumber":4,"StartColumnNumber":145,"EndLineNumber":4,"EndColumnNumber":152},"Reference":"8e91a8e3-c8d6-42df-8b39-742bf2be795b","Type":2,"Text":"cNuts.4","Color":26},{"Range":{"StartLineNumber":4,"StartColumnNumber":165,"EndLineNumber":4,"EndColumnNumber":175},"Reference":"820926ca-1601-48de-bcbe-8db95d413994","Type":2,"Text":"cEthical.4","Color":27},{"Range":{"StartLineNumber":11,"StartColumnNumber":38,"EndLineNumber":11,"EndColumnNumber":52},"Reference":"51b78fbd-93fd-4bac-aa98-d4aa87de6ee2","Type":2,"Text":"choice.model.1","Color":28}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":false,"calculating":"Idle","showDebug":false,"layout":"Top","vSplit":0.60025641025641019,"hSplit":0.45,"Options":{"debugconsole":false,"codeposition":"Top","splitH":0.45,"splitV":0.60025641025641019}}