search for: mean_price

Displaying 4 results from an estimated 4 matches for "mean_price".

2013 Apr 30
1
Stacked geom_bar with aggregated SE -ggplot2
...riginal question: http://r.789695.n4.nabble.com/ggplot2-se-variable-in-geom-errorbar-s-limits- td3311176.html). It wouldn't let me reply to that thread. A modification of the earlier answer:? data(diamonds)? ?diamonds_df <- ddply(diamonds, .(cut, color), summarise,? ? ? ? ? ? ? ? ? ? ? ? ? mean_price = mean(price),? ? ? ? ? ? ? ? ? ? ? ? ? se_price = sd(price)/sqrt(length(price))? ? ? ? ? ? ? ? ? ? ? ? ? )? ?limits <- aes(ymax = mean_price + se_price, ymin = mean_price - se_price)? a<-ggplot(diamonds_df, aes(x = cut, y = mean_price, fill=color)) +? ?geom_bar(position=position_stack(widt...
2011 Feb 17
3
ggplot2, 'se' variable in geom_errorbar's limits?
Dear R-list I'm working with with geom_errorbar; specifically I'm trying to reproduce the example Hadley Wickham have on http://had.co.nz/ggplot2/geom_errorbar.html (all in the button of the page) where he makes an nice plot with errorbars and then draw lines between the points. What confuses me is the 'limits' he defines for the errorbars from the se variable. First he creates
2012 Dec 13
3
how to aggregate the dataset
HI, Sorry for messing up.. I want to transform the following dataset: product min_price max_price mean_price country price_band 11 34 50 40 VN 0-300 22 10 30 15 VN 0-300 Into: product VN price_band 11 40 0-300 [34,50] 22 15 0-300...
2011 Feb 04
1
Error in solve.default(inf, tol = tol.solve) :
...es following error message: Error in solve.default(inf, tol = tol.solve) : system is computationally singular: reciprocal condition number = 4.20137e-12 I get the same message when I try to run de lagsarlm with a bigger data set (4333 regions). The command I used: TestLag<-lagsarlm( mean_price ~ transcount+ C1_5_1+ C1_5_2+ C1_5_3+ C1_5_4, data=DataB,transcecB.listw) summary(transcecB.listw) Characteristics of weights list object: Neighbour list object: Number of regions: 521 Number of nonzero links: 2904 Percentage nonzero weights: 1.069846 Average number of links: 5.573896 L...