Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 4 - Stata 17 Code #1

Open
cvasoff opened this issue Jan 3, 2022 · 2 comments
Open

Chapter 4 - Stata 17 Code #1

cvasoff opened this issue Jan 3, 2022 · 2 comments

Comments

@cvasoff
Copy link

cvasoff commented Jan 3, 2022

  • STATA CODE (p. 65 of textbook)
    For: *2 Get the conditional mean college attendance
    table wc, c(mean earn)

I get the following msg:
. table wc, c(mean earn)
option contents() not allowed since Stata 17; see help table for updated syntax

Apologies, I'm relatively new to Stata, and I do not see in the Stata help file how to obtain the conditional mean using updated syntax.

Thanks!

Ceci

@NickCH-K
Copy link
Owner

NickCH-K commented Jan 4, 2022

Hmm, shoot, I don't have access to Stata 17 to test it out, but it looks like maybe the syntax would be table wc, statistic(mean earn)?

@cvasoff
Copy link
Author

cvasoff commented Jan 4, 2022

Thank you, that worked! :-)

Wife attended college
Wife did not attend college 3.583539
Wife attended college 5.343309
Total 4.172876

Ceci

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

No branches or pull requests

2 participants