Repository navigation
Update three Next Steps Stata do-files - #13
Merged
Merged
Conversation
- Data structures and combining data across sweeps: negative_to_na now uses recode (values of -1 or below become missing) in place of a loop over the variables. - Combining data within a sweep: set linesize 255 before the final listing, so that each row is printed on one line. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Follows #12. Three more small changes to the downloadable Stata scripts for the Next Steps pages. The R code and the pages themselves are unchanged.
negative_to_naprogram now usesrecodein place of a loop over the variables. It sets values of-1or below to missing, which covers every missing-value code used in Next Steps.set linesize 255now runs before the final listing, so that each row is printed on one line.The Next Steps section being prepared for the Stata site (
CLS-Data/data-handling-stata) uses these same versions of the scripts, so the two sites stay identical.Testing: all six Next Steps do-files were run in Stata (StataNow 19.5, batch mode) on made-up data that has the real file and variable names, with no errors. These versions have not yet been run on the real data.
🤖 Generated with Claude Code