Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

[no subject]



Joseph Coveney

clear
set more off
input exposed outcome n
0 0 184
0 1 21
1 0 174
1 1 30
end
cc outcome exposed [fweight=n]
logit outcome exposed [weight=n], or nolog
reshape wide n, i(exposed) j(outcome)
rename n1 positive_responses
generate long total_population = n0 + positive_responses
blogit positive_responses total_population exposed, or
exit

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index