survey Questions

3

Solved

Is there an existing function that creates confidence intervals from a svyby object for proportions (in my case a crosstab for a binary item in the survey package). I often compare proportions acro...
These asked 1/1, 2013 at 17:21

1

I'm looking for a python library for replace the rake function from "Survey", an R library (https://www.rdocumentation.org/packages/survey/versions/4.0/topics/rake) I have found and try Q...
Undertenant asked 16/9, 2020 at 9:53

4

Solved

I have survey data from a stratified simple random sampling design where some strata contain only a single sampling unit (even though the strata population size may be >1). These are referred to as...
Bushwa asked 11/9, 2015 at 23:49

1

Solved

I would like to get p-values from the results of a svyglm model when using multiple imputations. A reproducible example is below. Create data sets library(tibble) library(survey) library(mitools)...
Werner asked 2/3, 2018 at 23:9

1

Solved

In my dataset respondents are grouped together and there is data available about their age. I want all the people in the same group to have the value of the oldest person in that group. So my examp...
Methylal asked 30/11, 2021 at 13:25

3

This is just a very simple question but I just cant find the right function to use from the web and books. this is an example I got from one of the post here. df <- data.frame(sex = c('F', 'M'...
Classicism asked 2/1, 2017 at 11:33

2

Solved

I have a question regarding calling variables in svycontrast() function with survey package. I'm trying to automate some contrast against a fixed parameter. I can do that no problem like this: libr...
Boarer asked 2/6, 2021 at 20:42

3

Solved

df1 <- data.frame(c("male", "female", "male"), c("1", "2", "3", "4", "5", "6"), seq(141, 170)) names...
Televisor asked 13/2, 2012 at 17:27

1

Solved

I want to do a linear regression applying survey weights in R studio. I have seen that it is possible to do this with the lm() function, which enables me to specify the weights I want to use. Howev...
Holzer asked 27/9, 2020 at 15:8

2

I am not a survey methodologist or demographer, but am an avid fan of Thomas Lumley's R survey package. I've been working with a relatively large complex survey data set, the Healthcare Cost and Ut...
Lynlyncean asked 4/2, 2016 at 20:13

1

I'm interesting in performing a GAM regression on data from a national wide survey which presents sample weights. I read with interest this post. I selected my vars of interest generating a DF: n...
Oren asked 26/5, 2019 at 13:16

1

I am running logistic regressions with a panel data set from survey data and I want to correct the standard errors for the panel design. The weights included in this survey account for sampling pro...
Kit asked 17/5, 2019 at 12:47

1

Solved

Excited to see Charco Hui resurrected Thomas Lumley's experimental sqlsurvey package as svydb. Potentially a great tool for working with large survey data sets in R. Have though run into some pro...
Vada asked 27/12, 2018 at 18:20

8

Solved

C++0x is going to make the following code and similar code ill-formed, because it requires a so-called narrowing conversion of a double to a int. int a[] = { 1.0 }; I'm wondering whether this k...
Antonietta asked 13/12, 2010 at 22:33

3

Solved

I would like to make my code more efficient, I have a survey where my data looks like: survey <- data.frame( x = c(1, 6, 2, 60, 75, 40, 27, 10), y = c(100, 340, 670, 700, 450, 200, 136, 145)...
Cutlerr asked 27/11, 2017 at 9:45

2

Solved

Sorry if this is really obvious, but I can't see how to do a simple Pearson correlation between two variables in the survey package. My data has strata so it would be the equivalent to finding r fo...
Brumfield asked 22/12, 2015 at 15:10

1

Solved

I have found some odd behavior with predict and the svyglm object from the survey package. If your newdata in predict has a factor/character with one level it spits out error: Error in `contrasts&...
Rectitude asked 7/11, 2016 at 19:1

1

Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels I'm getting this error whenever I try using the svychisq functio...
Marleenmarlen asked 21/9, 2016 at 15:41

2

Solved

I'm very much inspired by the approach to data management advocated by Rich Hickey, and implemented in Datomic, where the data is never mutated in-place, all the versions are always preserved...
Insipience asked 22/11, 2012 at 7:50

1

Solved

I have a large data set (more than 20 million obs) that I analyze with survey package and it is taking me ages to run simple queries. I have tried to find a way to speed up my code but I would like...
Ferrosilicon asked 3/9, 2015 at 16:11

4

Solved

I'm trying to develop an Android app that could be used by advocacy groups or campaigners such that they would be able to create their own forms (surveys) for which they can go out canvassing and c...
Harve asked 17/11, 2010 at 23:28

2

I have survey data in SPSS and Stata which is ~730 MB in size. Each of these programs also occupy approximately the amount of space you would expect(~800MB) in the memory if I'm working with that d...
Kelsiekelso asked 23/4, 2015 at 11:10

2

Solved

How can I extract attributes from svyciprop object below to a data.frame: library(survey) api <- read.dta(file = "http://www.ats.ucla.edu/stat/stata/library/apipop.dta") data(api) dclus1 <- ...
Aut asked 23/12, 2014 at 11:44

2

Solved

Ever since Joshua Katz published these dialect maps that you can find all over the web using harvard's dialect survey, I have been trying to copy and generalize his methods.. but much of this is ov...
Mcquillin asked 27/4, 2014 at 1:6

1

Solved

background i have some private survey data that contains a column of confidential information: the geographic location of the survey respondents. under no circumstances can this information be rel...
Weinberger asked 13/6, 2014 at 9:59

© 2022 - 2024 — McMap. All rights reserved.