search for: dafp

Displaying 1 result from an estimated 1 matches for "dafp".

Did you mean: daff
2011 Jan 27
1
normalizing prizes to a specific year - how to?
...rame with house prices. Prices have been converted to price per m2, to be able to compare. Prices are spread over almost 10 years, each price is tagged with the year it relates to. I would like to 'normalize' all the prices to, eg. 2010 prices. The data frame looks like this > head(dafP) Y P 1 2004 11199.60 2 2005 15310.10 3 2005 19491.50 4 2005 18656.70 5 2005 16092.00 6 2005 9929.08 Y is Year and P is price (in Danish Kroner) per m2 I looked in some old scripts and have written this: dafP$Yav <- ave(dafP$P,dafP$Y,FUN=mean) # Yav. Prices Weight per Year, i.e. Yearly...