Results 1 to 1 of 1

Thread: R-Script

  1. #1
    Apr 2009


    CAn someone tell me if I have done this question correctly and what else I need to do

    3. A famous formula that can be used to roughly estimate the Blood Alcohol Concentration
    (BAC) percentage is the Widmark formula given as


    • Ounces’ is the liquid ounces of alcohol consumed.
    • ADR’ is the alcohol distribution ratio. This is equal to 0.73 for males and 0.66 for females.
    • Weight’ is the weight (kg) of individual whose BAC is to be estimated.
    • Hours’ is the time in hours since the first drink.

    (a) Suppose we wish to estimate the BAC% of a male who weighs 80kg and who has
    consumed 2.7 liquid ounces of alcohol over the past 2.5 hours. Write an R script
    file (make sure you submit your commands when handing in your assignment) that

    i. Assigns appropriate values to the R objects Ounces, Weight, ADR and Hours
    that will be used to estimate the BAC% for this individual.

    ii. Uses these R objects and the Widmark formula to estimate the BAC%.
    What is the estimated BAC% for this person?

    > ((2.7*5.3*0.73)/(2.2/80))-0.015*2.5
    [1] 379.8280

    (b) Now suppose that this person has consumed the same amount of alcohol over 3
    hours. By changing just the value you assigned to Hours in your script, what is
    the estimated BAC% now?

    > ((2.7*5.3*0.73)/(2.2/80))-0.015*3
    [1] 379.8205
    Attached Thumbnails Attached Thumbnails R-Script-widmark-formula.bmp  
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. is there a way to kill a script in matlab?
    Posted in the Math Software Forum
    Replies: 3
    Last Post: Aug 6th 2010, 04:21 AM
  2. Help with Matlab Script
    Posted in the Math Software Forum
    Replies: 1
    Last Post: Apr 25th 2010, 08:25 PM
  3. Matlab help can't write script
    Posted in the Math Software Forum
    Replies: 2
    Last Post: Jan 28th 2010, 05:00 AM
  4. Capital script
    Posted in the LaTeX Help Forum
    Replies: 3
    Last Post: Dec 7th 2009, 09:04 PM
  5. MATLAB and using the script for RK4 method
    Posted in the Math Software Forum
    Replies: 1
    Last Post: Apr 8th 2009, 03:33 AM

Search Tags

/mathhelpforum @mathhelpforum