Hi I'm trying to export data from REDCAP, which I normally have no problem with after downloading the STATA do-file and CSV file. However, I keep getting the following error after just the first code on the STATA do-file.
float: invalid variable name
r(198);
This is the code. What's wrong with it?
import delimited record_id redcap_event_name redcap_survey_identifier first_name email hospital nurse_info_complete nurse_demographics_timestamp age gender marital_status race race_other ethnicity hours experience shift float quality_eol nurse_demographics_complete nurse_questions_1_timestamp n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14 n15 n16 n17 n18 n19 n20 n21 n22 nurse_questions_1_complete nurse_questions_2_timestamp ns1 ns2 ns3 ns4 ns5 ns6 ns7 ns8 ns9 ns10 ns11 ns12 ns13 ns14 ns15 nurse_questions_2_complete nurse_post_questions_timestamp post1 post2 post3 post4 post5 nurse_wp nurse_wp1 nurse_post_questions_complete using "SNHNurseSurveysExter_DATA_NOHDRS_2025-03-17_2144.csv", varnames(nonames)
float: invalid variable name
r(198);
This is the code. What's wrong with it?
import delimited record_id redcap_event_name redcap_survey_identifier first_name email hospital nurse_info_complete nurse_demographics_timestamp age gender marital_status race race_other ethnicity hours experience shift float quality_eol nurse_demographics_complete nurse_questions_1_timestamp n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14 n15 n16 n17 n18 n19 n20 n21 n22 nurse_questions_1_complete nurse_questions_2_timestamp ns1 ns2 ns3 ns4 ns5 ns6 ns7 ns8 ns9 ns10 ns11 ns12 ns13 ns14 ns15 nurse_questions_2_complete nurse_post_questions_timestamp post1 post2 post3 post4 post5 nurse_wp nurse_wp1 nurse_post_questions_complete using "SNHNurseSurveysExter_DATA_NOHDRS_2025-03-17_2144.csv", varnames(nonames)
Comment