Changed package used to read in stata files#1
Open
thomasbattram wants to merge 2 commits intoexplodecomputer:masterfrom
Open
Changed package used to read in stata files#1thomasbattram wants to merge 2 commits intoexplodecomputer:masterfrom
thomasbattram wants to merge 2 commits intoexplodecomputer:masterfrom
Conversation
…f the variables are included as attributes in the output
Owner
|
hey have you tested this? does the haven function work in exactly the same way as the readstata13 package? |
Author
|
Hi Gib,
Hope you're well! Sorry, I didn't mean to give you any work to do!
This is what I currently use to read in the stata files for my project. I haven't tested whether it takes longer to read in files, but the data itself is the same. haven uses tibbles instead of data.frames also.
Kind regards,
Tom
…--------------------------------------------------
Thomas Battram
Wellcome Trust PhD student
MRC Integrative Epidemiology Unit
University of Bristol
Oakfield House
BS8 2BN
________________________________
From: gibran hemani <notifications@github.com>
Sent: 28 March 2019 09:35:16
To: explodecomputer/alspac
Cc: Thomas Battram; Author
Subject: Re: [explodecomputer/alspac] Changed package used to read in stata files (#1)
hey have you tested this? does the haven function work in exactly the same way as the readstata13 package?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AZ9prvb9_TfqOuzqNXGqGzO-WiMnDZhlks5vbIzUgaJpZM4cN98N>.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
readstata13 loses information when reading in .dta files because it ignores all the comments on the variables. This is a pain with alspac data because it means you have no idea what the variables correspond to because each of the column names aren't descriptions of the variables, e.g. the column "fm4ms100" is actually height measured at the FOM4 time point...