asdfree | analyze survey data | Data Visualization library
kandi X-RAY | asdfree Summary
kandi X-RAY | asdfree Summary
analyze survey data for free
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of asdfree
asdfree Key Features
asdfree Examples and Code Snippets
Community Discussions
Trending Discussions on asdfree
QUESTION
This may be more of a statistical question. I am trying wrap my head around understanding unweighted frequencies in R, using the 2016 ANES survey. I downloaded the data using anesr
and am working with Anthony Damico's textbook on lodown
: http://asdfree.com/american-national-election-study-anes.html
ANES Guide: https://electionstudies.org/wp-content/uploads/2018/12/anes_timeseries_2016_userguidecodebook.pdf
ANES is a panel survey, with a pre and post election interview.
Apologies that I cannot post the underlying data. But essentially, I am trying to understand one issue.
Let's say I want to get an unweighted count of responses to V161195x, which summarizes view on what should be done with children brought to the US illegally. Using the unweighted data frame, I run:
...ANSWER
Answered 2020-Dec-14 at 01:35Because you are using the post-election weight variable, which is missing (or possibly zero) for people who aren't in the post-election survey, you will only get observations that are in both surveys.
QUESTION
options( survey.lonely.psu = "adjust" )
library(survey)
library(lodown)
# retrieve a listing of all available extracts for the youth risk behavioral
# surveillance system
yrbss_cat <- get_catalog( "yrbss" , output_dir = file.path( path.expand( "~" ) , "YRBSS" ) )
# limit the catalog to only years 2005-2015
yrbss_cat <- subset( yrbss_cat , year %in% seq( 2005 , 2015 , 2 ) )
# download the yrbss microdata
lodown( "yrbss" , yrbss_cat )
...ANSWER
Answered 2020-Jan-21 at 11:16library(httr) set_config(config(ssl_verifypeer = 0L)) #these two lines fixes the Peer certificate error and then the code started working.
QUESTION
I'm analyzing data from the American Housing Survey, which ship with replicate weights to compute correct standard errors, in R with survey
, but I want to make sure that I'm specifying the design correctly.
Here is how I do it:
...ANSWER
Answered 2019-Dec-17 at 21:48svrepdesign
doesn't need scale
or rscales
arguments for Fay replicate weights, because it can work them out by itself. That's the point of having known type
s of weights. I should probably add a warning for when you specify them anyway.
There doesn't need to be a Fay coefficient in the formula explicitly. When the weights were constructed, the sampling weights were multiplied by 2-rho
or rho
to get replicate weights. That's all been done. Now all you need is to know how to scale the squared residuals. The Census Bureau formula (p6 of your link) has a multiplier of 4/160. That 4 is 1/(1-rho)^2
-- Anthony Damico's code has the reverse conversion, working out rho=0.5
from the 4
.
Straightforward BRR would have a multiplier of 1/160 rather than 4/160.
QUESTION
I am trying to download the complete Survey of Consumer Finance data files following the example in asdfree using lodown. The code works seamlessly and I am able to use it to download a single implicate for each year. I did not see in the catalog or example how to download all 5 implicates of the SCF.
I followed the code from asdfree for download the entire SCF. This results in one implicate of each year and replicate weights.
...ANSWER
Answered 2019-Oct-09 at 20:20the code doesn't only download a single implicate. after following the steps on page http://asdfree.com/survey-of-consumer-finances-scf.html to get to the scf_imp
object, here's how to take a look at the first few records of the first and fifth implicate. thanks
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install asdfree
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page