Python Forum
How to analyze a string, then write to SPSS
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to analyze a string, then write to SPSS
#1
Hi:

New to SPSS and python, but trying to make it work. I will give my initial thoughts on how to do this at the end. I have lists of various participants in a study that have made it through 1 week, 2, week, 3 week, etc. of the trial. I need to read my SPSS file, see if there is data on which week of the trial they made it to, and if there is not, I need to input that data.

The basic logic, I believe, would be to loop through the string of participants (organized by # of weeks spent in study), then read the SPSS file column referring to the patient in question, and say, if this patient has information in its respective column for time in study, do nothing, else, add week of study.

While the logic seems pretty straightforward, how to actually pull this off seems fairly complicated. Could anyone point me to a module to use for this purpose and perhaps some tutorials? I look forward to (and appreciate) your suggestions. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Analyze, predict the next step in a sequence. Antonio0608 0 1,971 Jul-23-2020, 05:53 PM
Last Post: Antonio0608

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020