Calculate P Value -Awk


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Calculate P Value -Awk
# 1  
Old 03-05-2010
Calculate P Value -Awk

Is there any awk command to calculate P Value ?(Probability)

Is it possib;e to calculate P va;ue for this data for ex?

Code:
   7.891284
8.148193
7.749575
7.958188
7.887702
7.714877
8.141548
7.51845
8.27736
7.929853
7.92456
8.249126
7.989113
8.012573
8.351206
8.030917
8.093815
7.730415
8.170496
8.023208
8.030033
8.131714
7.99999
8.075996
8.139901
8.014126
7.826123
8.046238
7.692945
8.38382
8.303576
7.941759
8.292232
8.109393
7.783866
8.25309
8.085338
7.867881
8.242435
8.186425
7.505367
7.972443
7.788548
7.804566
8.088159
8.171188
8.202736
8.000963
7.92066
7.788327
8.28567
8.038367
7.814887
8.128383
7.613477
7.988699
7.966927
7.743252
7.569508
7.845324
7.794079
8.050988
7.65237
7.860983
7.790497
7.617672
8.044343
7.421245
8.180155
7.832648
7.827355
8.151921
7.891908
7.915368
8.254001
7.933712
7.99661
7.63321
8.073291
7.926003
7.932828
8.034509
7.902785
7.978791
8.042696
7.916921
7.728918
7.949033
7.59574
8.286615
8.206371
7.844554
8.195027
8.012188
7.686661
8.155885
7.988133
7.770676
8.14523
8.08922
7.408162
7.875238
7.691343
7.707361
7.990954
8.073983
8.105531
7.903758
7.823455
7.691122
8.188465
7.941162
7.717682
8.031178
7.516272
7.891494
7.869722
7.646047
7.472303
7.748119
7.618918
7.62106
7.367224
7.669182
7.930553
7.708696
8.060393
7.863294
8.148997
8.28975
7.719958
7.977419
7.733017
8.025568
8.151217
7.892613
7.99494
7.720548
7.884045
7.778486
8.070317
7.880286
8.36804
8.343821
8.159058
7.969159
7.855185
7.921451
7.584171
8.177038

# 2  
Old 03-05-2010
# 3  
Old 03-05-2010
hey

In the link you have provided I have seen it before. They are not working Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Solved] Using awk to calculate max value

I have a file of sites and each site has a variable number of flow values with a date for each value. I want to determine the max value of flow for each site and output the site number, max value, and date of max value.The format structure (simplified) is the following: Record Site Number ... (5 Replies)
Discussion started by: cparr
5 Replies

2. Shell Programming and Scripting

awk to calculate timex output

I have a timex 'dd' command that generates an output similar to this: real 701.92 user 3.06 sys 469.10 for the moment, i m redirecting the output to a temp file to stage the calculation (using bc) for: a) MB/s b) cpu usage = 100*(user+sys)/real I am looking around for an 1-liner... (3 Replies)
Discussion started by: ux4me
3 Replies

3. Shell Programming and Scripting

AWK: calculate ratio of columns

Hi all, I have a tab-delimited text file in which i have a few columns which look like, X Y U V 2 3 4 5 4 5 3 4 6 4 3 2 For example, I want to calculate the ratio (X+Y)/(X+Y+U+V) for each row and print the output. X Y U V ... (3 Replies)
Discussion started by: mehar
3 Replies

4. Shell Programming and Scripting

Calculate Average AWK

I want to calculate the average line by line of some files with several lines on them, the files are identical, just want to average the 3rd columns of those files.:wall: Example file: File 1 001 0.046 0.667267 001 0.047 0.672028 001 0.048 0.656025 001 0.049 ... (2 Replies)
Discussion started by: AriasFco
2 Replies

5. Shell Programming and Scripting

Using AWK to Calculate Correct Responses

Hello, I am trying to count how many times a subject makes a correct switch or a correct stay response in a simple task. I have data on which condition they were in (here, labeled "IMAGINE" and "RECALL"), as well as whether they made a left or right button response, and whether the outcome was... (5 Replies)
Discussion started by: Jahn
5 Replies

6. Shell Programming and Scripting

awk script to calculate total

Hi First field is the Record Type. A Record Type 5 can have multiple Record Type 6's before another Record Type 5 appears. I want to calculate the total of fields at position 8-11 on Record type 6 when Record Type 5 has a field at position 11-14 equals to '2222'. then it should delete the lines... (2 Replies)
Discussion started by: appsguy616
2 Replies

7. Shell Programming and Scripting

how can i calculate a file using awk

hi all Am new to scripting... So,i have a file named file1 its contents are as follows: joy 55 66 77 ruby 77 88 99 saloni 88 44 33 I would require a script which will calculate its percentage,its total and the average with awk script Many thanks in advance.. Please reply me at... (4 Replies)
Discussion started by: whizkidash
4 Replies

8. Shell Programming and Scripting

Need an AWK script to calculate the percentage

Hi I need a awk script to calculate percentage. I have to pass the pararmeters in to the awk script and calculate the percentage. Sum = 50 passed = 43 failed = 7 I need to pass these value in to the awk script and calculate the percentage. Please advice me. (8 Replies)
Discussion started by: bobprabhu
8 Replies

9. UNIX for Dummies Questions & Answers

Use awk to calculate average of column 3

Suppose I have 500 files in a directory and I need to Use awk to calculate average of column 3 for each of the file, how would I do that? (6 Replies)
Discussion started by: grossgermany
6 Replies

10. Shell Programming and Scripting

How to calculate with awk

Hi, I have below awk statement and I need to convert the second field ( substr($0,8,6))from minutes to hours with 2 decimail place. How can I achieve this? /usr/bin/awk '{print substr($0,23,4),substr($0,8,6)}' /tmp/MANAGER_LIST.$$ >> /tmp/NEWMANAGER_LIST.$$ Thanks for any help! (4 Replies)
Discussion started by: whatisthis
4 Replies
Login or Register to Ask a Question