Skip to content

Update three Next Steps Stata do-files - #13

Merged
ljwright merged 1 commit into
mainfrom
claude/next-steps-do-file-updates
Nov 27, 2026
Merged

ljwright merged 1 commit into
mainfrom
claude/next-steps-do-file-updates

Conversation

@ljwright

@ljwright ljwright commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

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.

  • Data structures and combining data across sweeps: the negative_to_na program now uses recode in place of a loop over the variables. It sets values of -1 or below to missing, which covers every missing-value code used in Next Steps.
  • Combining data within a sweep: set linesize 255 now 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

- 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>
@ljwright
ljwright merged commit 291af1a into main Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant