Displaying 2 results from an estimated 2 matches for "radamdata2".
2009 Feb 07
0
Problems with svyhist
...t two
distributions in the same graphic to visually compare them.
2) I get uniform breaks at intervals of 10. I can plot the unweighted
data using MyBreaks with hist as shown in the second code snippet
######################################
SurveyData <- read.table("C:/Data/R/RADAMdata2.csv", header=TRUE,
sep=",", na.strings="NA", dec=".", strip.white=TRUE)
DsnRADAM <- svydesign(id = ~RADAM.TAZ, weights = ~RADAM2005Pct, data =
SurveyData)
DsnLAWA <- svydesign(id = ~RADAM.TAZ, weights = ~LAWA2005Pct,
data = SurveyData)
MyBreaks <-...
2009 Feb 06
0
Comparing weighted histograms?
...-hatched left.
Do I need to pretend this is a survey and the "percentages' are survey
weights? How is such a svydesign formed?
Thanks in advance.
PS I can plot a single unweighted histogram as follows:
>
> SurveyData <- read.table("C:/Data/R/RADAMdata2.csv", header=TRUE,
sep=",", na.strings="NA", dec=".", strip.white=TRUE)
> MyX <- c(0,5,10,15,20,30,40,50,60,120)
> hist(SurveyData$Miles2LAX, breaks = MyX,
+ include.lowest = TRUE, right = TRUE,
+ angle = 45,
+ main = paste("Hist...