Question

Relative risk (RR) is a statistical term used to describe the risk of a certain event...

Relative risk (RR) is a statistical term used to describe the risk of a certain event happening in one group versus another. It is commonly used in epidemiology and evidence based medicine. For example smoking is found to be a cause for cancer. The formula for calculating the risk of cancer for smoking cigarettes is RR=

(__A___) / (__C____) where A=number of people who smoke and also have cancer, B=number of smokers not having cancer, C=number of people who did not smoke but still

    A+B C+D

have cancer, D=number of people who neither smoked not have cancer. If RR>1, smokers are at higher risk than non-smokers. If RR=1, the risk could go either way and if RR<1, the risk of smoking does not have any impact on cancer. Write a program in Java Eclipse to receive the four quantities from the keyboard, calculate RR, and print the appropriate remark.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

                                                The Code:

import java.io.*;
import java.util.*;

public class RelativeRisk {

    public static void main(String[] args) {
        double A,B,C,D,RR;
        Scanner sc=new Scanner(System.in);

        // Reading A<B<C<D from console.
        System.out.println("Enter number of smokers that have cancer");
        A=sc.nextDouble();
        System.out.println("Enter number of smokers that do not have cancer");
        B=sc.nextDouble();
        System.out.println("Enter number of non-smokers that have cancer");
        C=sc.nextDouble();
        System.out.println("Enter number of non-smokers that do not have cancer");
        D=sc.nextDouble();
        //Calculating RR and comparing with 1 for final conclusion
        RR=((A/(A+B))/(C/(C+D)));
        if(RR>1.0) System.out.println("Smokers are at a higher risk of cancer than non-smokers");
        else if(RR<1.0) System.out.println("Smokers are at a lower risk of cancer than non-smokers");
        else System.out.println("Risk of cancer can go either way to smokers or non-smokers");
    }
}

                                                 Console Output:

run: Enter number of smokers that have cancer 4 Enter number of smokers that do not have cancer Enter number of non-smokers t

Add a comment
Know the answer?
Add Answer to:
Relative risk (RR) is a statistical term used to describe the risk of a certain event...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Lung Cancer & Smoking Case Study A causal relationship between cigarette smoking and lung cancer was...

    Lung Cancer & Smoking Case Study A causal relationship between cigarette smoking and lung cancer was first suspected in the 1920s on the basis of clinical observations. To test this apparent association, numerous epidemiologic studies were undertaken between 1930 and 1960. Two studies were conducted by Richard Doll and Austin Bradford Hill in Great Britain The first was a case-control study begun in 1947 comparing the smoking habits of lung cancer patients with the smoking habits of other patients. The...

  • Which of the following describe an observational study? Check all that apply. Group of answer choices...

    Which of the following describe an observational study? Check all that apply. Group of answer choices Study 1: An early study of the relationship between smoking and lung cancer was conducted by Hammond & Horn (1958). They had an extensive set of volunteers track 187,766 men over a 44-month period, noting their smoking habits and whether or not they had died of lung cancer. Study 2: A study published in the Archives of Internal Medicine reported on the effectiveness of...

  • In a behavioral medicine study, Cease, Now, And Live-Longer(2017) found that there was a difference in...

    In a behavioral medicine study, Cease, Now, And Live-Longer(2017) found that there was a difference in effectiveness of using rapid smoking as a treatment of smoking cessation as compared to a control method. They found that participants smoked less after receiving the rapid smoking treatment as compared to those participants in a control condition. Cease et al. (2017) had reviewed considerable research on other treatments for smoking cessation. For example, there is the use of nicotine replacement therapy and the...

  • Causation Relative risk Type I Error Ethics RCTS Lead-time bias makes it appear that people who...

    Causation Relative risk Type I Error Ethics RCTS Lead-time bias makes it appear that people who get an early diagnosis from a screening test, live longer than Lead time aren't screened This type of bias occurs when we select participants on a common effect that will likely produce an association Selection bias 3. Resfarchers test the effectiveness of exercise versus diet in a weight-loss study, the concluded that there was between the two, but the truth is, there is a...

  • - Match the descriptions with the study type A large group of people are enrolled in...

    - Match the descriptions with the study type A large group of people are enrolled in a study to investigate the effeets of diet on A. Cross sectional study heart disease. Everyone is free of heart disease at the start of the study and people BD B. Prospective Cohort study are followed for 10 years to see if disease develops. What study design is this? C. Retrospective Cohort study D.RCT Researchers wish to investigate the association between complications during Caesarian...

  • Question Completion Status: Match the descriptions with the study type A large group of people are...

    Question Completion Status: Match the descriptions with the study type A large group of people are enrolled in a study to investigate A. Prospective Cohort B. # the effects of diet on heart disease. Everyone is free of heart disease at the start of the study and people are followed for.Case control study 10 years to see if disease develops. What study design is C.Retrospective Cohort this? D. RCT E. Cross sectional study C.Researchers wish to investigate the association between...

  • MATCHING A. RCT B. Cross sectional study C. Retrospective Cohort study D.. Prospective Cohort study E....

    MATCHING A. RCT B. Cross sectional study C. Retrospective Cohort study D.. Prospective Cohort study E. Case control study 1. A large group of people are enrolled in a study to investigate the effects of diet on heart disease Everyone isfree of heart disease at the start of the study and people are followedfor10 yearsto see if disease develops. What study design is this? 2. Researchers wishto investigate the association between complications during Caesarian section delivery and hospital of choice....

  • Harriet And Smoking Cessation This chapter’s case study demonstrates the usefulness of the Ecological Model and...

    Harriet And Smoking Cessation This chapter’s case study demonstrates the usefulness of the Ecological Model and its interaction with individual-focused interventions, and it also draws together information from other models discussed in the chapter. The case study is presented in segments of a life course as well as an episodic perspective of factors involved in the case. It provides a perspective of the social changes that allow individual behavior changes to succeed, while also examining some of the processes involved...

  • The sharpest rise in teenage smoking is among: Select one: a. African American females b. Caucasian...

    The sharpest rise in teenage smoking is among: Select one: a. African American females b. Caucasian males c. African American males d. Caucasian females Question 2Not yet answeredPoints out of 1.00 Not flaggedFlag question Question text What percentage of adults in the U.S. drink alcohol? Select one: a. 75% b. 67% c. 30% d. 80% Question 3Not yet answeredPoints out of 1.00 Not flaggedFlag question Question text The same poisonous gas emitted from motor vehicles and cigarettes is: Select one:...

  • Please Use your keyboard (Don't use handwriting) Thank you.. PHC 231 I need new and unique...

    Please Use your keyboard (Don't use handwriting) Thank you.. PHC 231 I need new and unique answers, please. (Use your own words, don't copy and paste)*** Discuss Central Line-Associated Bloodstream Infection (CLABI) "or" Ventilator-Associated Pneumonia (VAP) outbreak in long-term acute care hospital settings. Address the following in your report: Characterize the epidemiology and microbiology Describe the agent and identify the host and the environment that is favorable for the infection. Discuss how the infections spread and the types of prevention...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT