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

feat: update naics_classification to latest version #355

Merged
merged 45 commits into from Mar 20, 2024
Merged

Conversation

jdhoffa
Copy link
Member

@jdhoffa jdhoffa commented Mar 18, 2024

This PR updates the NAICS dataset to the latest version (published in "2022").

Relates to #344

@jacobvjk would appreciate a content review of this (especially on if some of these sectors should be Borderline). Steel in particular I was very unsure of.

@jdhoffa jdhoffa changed the title 344 update naics feat: update naics_classification to latest version Mar 18, 2024
@jdhoffa jdhoffa requested a review from jacobvjk March 18, 2024 15:27
@jdhoffa
Copy link
Member Author

jdhoffa commented Mar 19, 2024

For posterity, the original raw data was pulled from here: https://www.census.gov/naics/?48967

@jdhoffa
Copy link
Member Author

jdhoffa commented Mar 19, 2024

@jacobvjk updated the bridge to include all levels.
This PR is ready for review now

Copy link
Member

@jacobvjk jacobvjk left a comment

Choose a reason for hiding this comment

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

A few changes I would suggest mostly relating to borderline inclusion.

In general, I am still unsure about how close to the core business we want a code to be in order to be considered borderline == TRUE. Especially in steel production there are a number of products that require high temperature furnaces in their processes. But I am unsure if this means that companies are often integrated

data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
@jacobvjk jacobvjk self-requested a review March 19, 2024 13:59
jdhoffa and others added 10 commits March 19, 2024 15:34
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
@jdhoffa
Copy link
Member Author

jdhoffa commented Mar 19, 2024

EDIT: nevermind think I sorted it out

After applying the suggested changes, I get this weird case where certain "not in scope" sectors are also classified as "borderline = TRUE".

Any suggestion what I should do there?

Screenshot 2024-03-19 at 15 39 15

Copy link
Member

@jacobvjk jacobvjk left a comment

Choose a reason for hiding this comment

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

@jacobvjk jacobvjk self-requested a review March 19, 2024 14:55
Copy link
Member

@jacobvjk jacobvjk left a comment

Choose a reason for hiding this comment

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

somehow my latest steel suggestions were lost in the process

data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
@jacobvjk jacobvjk self-requested a review March 19, 2024 15:45
Copy link
Member

@jacobvjk jacobvjk left a comment

Choose a reason for hiding this comment

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

some broader borderline definitions

data-raw/classification_bridge.R Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
data-raw/classification_bridge.R Outdated Show resolved Hide resolved
data-raw/classification_bridge.R Show resolved Hide resolved
jdhoffa and others added 18 commits March 20, 2024 09:25
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
@jdhoffa jdhoffa requested a review from jacobvjk March 20, 2024 08:46
Copy link
Member

@jacobvjk jacobvjk left a comment

Choose a reason for hiding this comment

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

Last change. We validated that casting steel in foundries is in-scope and therefore these two codes should not be borderline

data-raw/classification_bridge.R Outdated Show resolved Hide resolved
jdhoffa and others added 3 commits March 20, 2024 10:55
Co-authored-by: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com>
@jdhoffa jdhoffa requested a review from jacobvjk March 20, 2024 09:59
Copy link
Member

@jacobvjk jacobvjk left a comment

Choose a reason for hiding this comment

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

lgtm

@jdhoffa jdhoffa merged commit e859959 into main Mar 20, 2024
24 checks passed
@jdhoffa jdhoffa deleted the 344-update_naics branch March 20, 2024 10:08
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.

None yet

2 participants