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...
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...
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] +=...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.