Displaying 20 results from an estimated 300 matches similar to: "Simple (?) subset problem"
2008 Aug 18
1
Survey Design / Rake questions
I'm trying to learn how to calibrate/postStratify/rake survey data in
preparation for a large survey effort we're about to embark upon. As a
working example, I have results from a small survey of ~650 respondents,
~90 response fields each. I'm trying to learn how to (properly?) apply
the aforementioned functions.
My data are from a bus on board survey. The expansion in the
2008 Nov 05
1
How do I read a text (.csv) file to match a matrix/cross tab? (Object confusion??)
I'm having a problem reading data to set control totals for a dataframe.
I want to adjust a dataframe based on a 2-d table of values, which I get
by using :
> CurrentX1Sums <- as.matrix(xtabs(~tripid_nu+lineon, data=SurveyData))
> CurrentX2Sums <- apply(CurrentX1Sums, 1, sum)
I've created a .csv file with new (target) sums that looks like this:
tripid_nu Warner
2008 Oct 30
1
Trying to "expand" some data - Newbie needs help
I want to calculate "expansion factors" for elements in my dataframe
based on a 2-d cross classification. Since I'll have "missing values"
(many combinations will have no record) I'll need a second "expansion
factor" for each "row". I've included my "work to date" below, but I'm
not very close to getting this right.
My
2013 Apr 01
2
[Possibly OT] - General question: state of internet traffic
Greetings,
I've read reports that there has been degradation in Internet traffic over
the last month. Until today, I haven't experienced any. However, getting
bank record data from chase.com here in NYC seems impossible.
I also noticed erratic ftp behavior today; connections can be made but
data can't be transferred. This isn't consistent, though.
(I have a machine in LA while
2009 Feb 19
1
How do I get xtabs to show missing data?
I presume the behavior below (no Connector values in the second table)
is because I have na values in my dataframe. How do I get them to list?
I found references to na.action and na.pass, but I could not figure out
how I could use them with xtabs to list the na as a value. I'm sure
there's a simple syntax I need, but it's not obvious to me.
> # Weighted Data
2009 May 26
3
Still can't find missing data
I'm trying to prepare some cross tabs, looking at a number of variables against a variable "connector" which has 2 values: "OD Passenger" and " Connector".
When I produce a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values.
What is wrong? I've looked into the na commands
2008 Jun 17
1
read.spss {foreign} doesn't work over network?
I'm unable to open an SPSS file over my network. If I copy it to my
local C:/ drive I can read it. I saved the command (in a "crib sheet"
text file) in order to avoid all the typing, so I'm pretty sure I've
done it before. I verified that the file I'm trying to read is OK.
This is what happens:
> SurveyData <-
2008 Nov 07
2
Faster way to combine data sets with different date ranges
I am trying to combine two data sets, one with daily values and one with weekly values. SurveyData conatins environmental data collected on a daily basis. sat.data contains satellite sea surface temperature that is an average of satellite measurements over a six day period. I would like to combine the two files so that my output file has the daily dates from SurveyData and the weekly average
2009 Feb 06
0
Comparing weighted histograms?
I'm trying to plot and compare weighted histograms and I can't seem find
where to start. I have data similar to this:
Miles2LAX RADAM2005Pct LAWA2005Pct
35.57 .00123 .00684
24.74 .00118 .00187
27.09 .00965 .00876
16.23 .00587 .00397
{ ...
2009 Feb 07
0
Problems with svyhist
I have two problems with svyhist. I hope this is easy, and it may be
that "simple R syntax" will do what I need.
1) I'm able to get a single plot out, but I need to put 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
2008 Oct 22
0
newbie Syntax questions: Re-Calculating expansion factors
I have a dataframe with many hundreds of survey records containing:
tripid_nu, lineon, MuchOtherData, X1, X2, X3, X4
tripid_nu = identifier for each "Trip" {E.g. for EB MTA-901
leaving the first stop at 07:24}
lineon = identifier for each of the stop locations
Where X1 is the ratio (for each trip/stop combination) of some target
number to the number of records.
2009 Nov 22
2
how to read BRFSS file
hello,
I am trying to do exploratory factor analysis with BRFSS dataset (
http://www.cdc.gov/brfss/technical_infodata/surveydata/2008.htm) for a
couple of days, but I was not able to do that and got frustrated. Can
anybody help me with step by step guide? BRFSS dataset provides ASCII or SAS
format.
Thank you.
chloe
[[alternative HTML version deleted]]
2008 Oct 31
0
Why are these different?
I want to import some "target values" to normalize elements of a
dataframe. I'm summarizing the existing totals using
as.matrix(xtabs(~tripid_nu+lineon, data=SurveyData)) and reading a .csv
table of target values. I can't even get them to list out as similar
data items.
My idea is to do something like this, but I don't know how to do it in R
2003 Feb 11
2
Periods instead of spaces in dataframe names?
Basic question:
when I use names() to extract the name of a dataframe element, why does it
have "." instead of " " between words?
Context:
I'm importing a CSV file of survey results for analysis. I read them like
this:
df <- read.csv("surveydata.csv",nrows=40,header=TRUE,
2009 Aug 07
3
Simple Question: adding points to a boxplot
I apologize in advance for the simplicity of this question. I use R 2-3 times a year, and I seem to forget more in the intervening months than I learn during my days of panicked reading.... I HAVE tried looking at the help resources; I'm just not very good at understanding them.
I have a dataframe with 18 observations of 5 different things, and a second dataframe with and estimate for those
2009 Aug 10
4
NotePad++ Syntax file
Does anyone have an R Syntax Highlighting file {userDefineLang.xml} for NotePad++?? I've started one, but I'm not so happy with it.
Robert Farley
Metro
1 Gateway Plaza
Mail Stop 99-23-7
Los Angeles, CA 90012-2952
Voice: (213)922-2532
Fax: (213)922-2868
www.Metro.net
[[alternative HTML version deleted]]
2003 Mar 05
6
Known SIP - NAT Solutions?
I have recently begun experimenting with Asterisk, and have been
mightily impressed by its capabilities and flexibility. I have run
across one problem, however, that challenges my ability to use it as a
production system.
My Asterisk box has a public Internet IP, and works great with SIP
(ATA 186) clients that also have public IP addresses. Unfortunately,
most of the locations that I would
2012 Mar 15
2
summing "transfers"
I have a dataframe from an On-Board Survey with weights ("expwgt") and variables for up to 8 used lines: VEH1 through VEH8. The lines are labeled "MT-..1" through "MT-902". I want to know how many transfers there are between MT-802 and MT-901. That is, when one of them is VEHx and the other is VEHx+1 or VEHx-1
E.g. {VEH1 = MT-802 AND VEH2 = MT-901 } plus {VEH2 =
2017 Sep 01
4
Consejo
Estimados miembros de la comunidad de R
Me gustaria conocer dado que estoy trabajando con datos del World Values
Survey, y tengo que recodificar variables y manipularlas,
por donde podria empezar a estudiar el uso de R en grandes surveys. Que
podria comenzar a la leer.
Su respuesta sera bienvenida
saludos
Antonio
--
Member, Editorial Committee, *The Economic and Labour Relations Review* (a
2008 Aug 21
2
data.frame() creates list?
I obviously don't know what I'm doing. I want to create "ByEBNum" as a
data frame, but it comes out as a list. How do I make it a data frame?
> EBNumStn <- c(673.65, 800, 1000, 1000, 800, 700, 600, 500, 400,
200, 50, 50 )
> ByEBNum <- data.frame(c(1:12),EBNumStn)
> typeof(EBNumStn)
[1] "double"
> typeof(c(1:12))
[1]