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

Adds popshare option #19

Merged
merged 19 commits into from
Jul 8, 2020
Merged

Adds popshare option #19

merged 19 commits into from
Jul 8, 2020

Conversation

davidlvargas
Copy link
Contributor

No description provided.

Copy link
Collaborator

@randrescastaneda randrescastaneda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HI David,

I think the code looks really good. There is one important comment regarding a noi instead of a oi, but the other comment is just about logical coherence. The function works, but the conditions do not exclude each other.

Thanks you

povcalnet.ado Outdated
*---------- Poverty line/population share
if ("`popshare'" != ""){
if ("`povline'" != ""){
oi disp as err "povline and popshare cannot be used at the same time"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I Think this should be noi rather than oi

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awful typo, I'll fix it right away

povcalnet.ado Outdated
loc pcall = "popshare"
}
}
else if ("`povline'" == "") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition is not mutually exclusive with the first condition and with the else statement. I think the problem is that these lines,

if ("`popshare'" != ""){
		if ("`povline'" != ""){

Should be just one line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, I'll adjust it

@randrescastaneda
Copy link
Collaborator

Hi Davdi,

one more thing. It is still not working with several values in popshare. For instance, it is not working like this,

povcalnet, popshare(.2 .5) clear
povcalnet, popshare(.2 .5) clear fillgaps

However, I am not worry about it. We could create a loop and make the query. It is not a big deal.

Thanks.

@davidlvargas
Copy link
Contributor Author

Hi Andres,

All fixed and rebased to ease the merge. Let me know if something is missing.

Thanks !
David

@randrescastaneda randrescastaneda merged commit e526444 into master Jul 8, 2020
@randrescastaneda
Copy link
Collaborator

Perfect. All changes have been added.
Thank you so much!
Best,

@randrescastaneda randrescastaneda deleted the quantile_qp branch July 8, 2020 19:50
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.

2 participants