Displaying 4 results from an estimated 4 matches for "price2".
Did you mean:
price
2009 Jul 23
2
SystemFit
Hi,
I have two products which are substitudes. I try to fix a system as below to
mydata.
Demand1 = A1 -B1*Price1 + C1*Price2
Demand2 = A2 +B2*Price1 - C2*Price2
I would expect C1 & B2 to be symmetric, If they are truly substitude. How
can I enforce this symmetry when creating a system of equations via
SystemFit ?
--
View this message in context: http://www.nabble.com/SystemFit-tp24588252p24588252.html
Sent from th...
2012 Sep 26
1
Running different Regressions using for loops
Hi,
I am trying to run many different regressions using a FOR Loop.
The input data that is read into R has the following variables
· Volume
· Price1
· Price2
· Price3
· Price4
· Price5
· Trend
· Seasonality
I want to run 5 regressions, with the Volume as an dependent variable and
Price, Trend & Seasonality as independent variables. I have read the above
mentioned variables in a variable called “tryout”...
2010 Jul 06
4
Adding two files into one and vlookup
...cbind because the rows are
not the same replication occurs. Also if I have similar data how do I write
a vlookup kind of function? I am giving an example below:
Say Price1 file contains the following:
Date Price
2/3/2010 134.00
3/3/2010 133.90
4/3/2010 135.55
And say price2 contains the following:
Date Price
2/3/2010 2300
3/3/2010 3200
4/3/2010 1800
5/3/2010 1900
I want to take both these data together in a single file, and take the
smaller vector (or matrix or dataframe??..i am new to R and still confused
with the various obj...
2009 Jul 31
1
what meaning missing value True /False needed
...t;- function(FirstYear,OptimYear,x, NbOfFutureSimYear,
CentralLapseRate, ElasticityLeft,WindowLeft, WindowRight, ElasticityRight,
MarketPriceMean,Price,Commission,IndividualExp,IndivMeanLossAmount,
CPIRate,LossInflaRate,Beta,Alpha)
{
R <- numeric(NbOfFutureSimYear+1)
Price2 <- numeric(NbOfFutureSimYear+1)
CumulRetentionCoef <- numeric(NbOfFutureSimYear+1)
Result <- numeric(NbOfFutureSimYear+1)
delta <- OptimYear - FirstYear
for (i in 1:(NbOfFutureSimYear+1))
{
k <- delta + i
R[i] <- LapseRate(x[i], LapseType[k],CentralLapseRate[k],
Elas...