-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issues reading in data from ACS_NSQIP_PUF_05_06_vr1 and acs_nsqip_puf19 #15
Comments
Have you tried re-running this since my last master branch update? I have made some significant changes. Sorry for the long response time here, I was away from personal projects for a while due to work. |
Hi Dylan,
I used a workaround with your old version in which I renamed the 2019 file
to 2018 and then ran your function (since 2018 and 2019 variables should be
structured in the same way). And then I just renamed the pufyear variable
back to 2019.
I am now working with your latest package (downloaded from Github) and I am
running into a different issue: when I run nsqip() on a directory, the
output rds and csv file have the right dimensions (number of cases,
variables), but all of the values are NA. Additionally, the long table for
cpt codes are no longer being generated.
Any idea why this could be happening?
Thanks!
Regards,
Rushmin
…On Mon, Nov 29, 2021 at 11:59 AM Dylan Russell ***@***.***> wrote:
Have you tried re-running this since my last master branch update? I have
made some significant changes. Sorry for the long response time here, I was
away from personal projects for a while due to work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APCVOVW2J6UAZBYCWDQB7CLUOO5PJANCNFSM46LHJOIA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
*Rushmin Khazanchi *(he/him/his)
M.D. Candidate, Feinberg School of Medicine
B.A. Biological Sciences, Northwestern '21
(412) 538-8934 | ***@***.***
|
Hi, So to be clear, the steps you are taking are:
Can you describe the directory structure and which files are in it? |
Hi Dylan,
Thanks for getting back to me on this.
Yes, those are the steps that I took. I downloaded the latest version of
the package via the line of code you suggested on your Github page:
devtools::install_github("dylanrussellmd/nsqipr")
And I ran nsqip() on a directory titled "nsqip_test" that contained just
the txt file for 2005-2006. I have attached a zip folder with the file
folder created after the function had finished running. As you can see,
there are no long table csv files for the CPT codes, and the actual Excel
sheet has completely missing entries for all fields except the year (which
based on your code is filled in based on the name of the file).
Let me know what you think the issue could be here. Really appreciate your
help on this.
Regards,
Rushmin
nsqip_test.zip
<https://drive.google.com/file/d/1uQkyNLDArdV071LVcggf9Y3kl8CSYoac/view?usp=drive_web>
…On Mon, Jul 4, 2022 at 10:30 AM Dylan Russell ***@***.***> wrote:
Hi,
So to be clear, the steps you are taking are:
1. Download master branch
2. Run nsqip() on a directory
Can you describe the directory structure and which files are in it?
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APCVOVRTUMTSDC5RABXWC7DVSLYORANCNFSM46LHJOIA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Rushmin Khazanchi *(he/him/his)
M.D. Candidate, Feinberg School of Medicine
B.A. Biological Sciences, Northwestern '21
(412) 538-8934 | ***@***.***
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
Running the nsqip() function with a directory of txt files does not read in ACS_NSQIP_PUF_05_06_vr1 for some reason (i.e. starts with the next file in the directory). Also, when the function gets to cleaning acs_nsqip_puf19, it stops and throws an error (copied below):
Error in if (unique(df[["pufyear"]]) > 2010) { :
missing value where TRUE/FALSE needed
Not sure where and why exactly this is occurring in the code.
Thank you for your help!
The text was updated successfully, but these errors were encountered: