Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: klkot
  • Content: Threads
  • Order by date
  1. klkot

    generate treatment&control with perl

    Hi again Perl gurus I've created the following Perl script to generate groups of test (T) and development (D) or "treatment and control" with the flip of a coin so to speak divided according to a list of a fake case Id's. So the first perl script I've written to do the simple task of: fakeid...
  2. klkot

    add consecutive missing keys in a hash

    Hi again Perl gurus. I've used the following code which produces the output I want where patientid is the key and each file has three values so the output looks like: Patientid Var1File1 Var2File1 Var3File1 Var1File2...... 1200 val val val val 1203 val...
  3. klkot

    problem calculating on nils

    Using a function such as the one below causes the issue of assuming that if all the intdaymiss i's were nil (missing), it manages to calculate the sum to be 0 rather than nil. Do you know what to do to make sure it sums all nils to stay nil? $megahash{$patientid[$i]}{$filename}[$dmindx] +=...
  4. klkot

    hash merge?

    The following file I created works to create the dataset I want for each file individually. I would have loaded each file and the two separate datasets would come out like this: Medication 1 Dataset Patientid Adhash{patientid} 1223 .95 1224 .56 1225 .78 1226 .99...
  5. klkot

    calculating on hashes?

    I'm very new to Perl and trying to get things to work. I'm working with a dataset that originally looks like this: ID Intdaymiss Daysobs 2611 . 12 2611 5 28 2612 . 0 2613 0 . 2613 5...
  6. klkot

    new to perl: translating my sas algorithms

    Just looked at Perl for the first time this week. Originally a SAS programmer so trying to translate sas code that worked into perl code for data management. This is sort of complicated so wondering how I might fix the errors? Thanks! I put the following code in and it does not work. Steps I...

Part and Inventory Search

Back
Top