Question

I would need both SAS & R code, the output and .txt file/s, please. Because many...

I would need both SAS & R code, the output and .txt file/s, please.

Because many HMOs either do not cover mental health costs or provide only minimal coverage, min- isters and priests often need to provide counseling to persons suffering from mental illness. An in- terdenominational organization wanted to determine whether the clerics from different religions have different levels of awareness with respect to the causes of mental illness. Fifteen clerics from different Christian denominations were sampled. Each was given a standard written test to measure his or her knowledge about causes of mental illness. The test scores and number of years serving as a cleric were also recorded. This data is given in the table below.

Cleric

Denomination

Test Score

Years of Service

1

Methodist

62

10

2

Catholic

62

23

3

Catholic

22

13

4

Pentecostal

37

34

5

Methodist

25

6

Methodist

6

4

7

Pentecostal

15

18

8

42

16

9

Catholic

22

40

10

Catholic

34

8

11

Methodist

12

37

12

Methodist

42

13

Pentecostal

5

18

14

Catholic

19

32

15

Methodist

56

28

  1. a Enter the data into SAS using a DATALINES statement in the DATA step. Use PROC PRINT to print the resulting data set. Make sure the entire denomination name is displayed. Report your output.

  2. b Create a data frame in R for the data. Print the data frame and report the output.

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

Note - Only the Rcode is given. Do not have SAS version to provide screenshots

Inputting the values Cleric < seq (1:15) Denomination < c (Methodist, Catholic,Catholic,Pentecostal, Methodist, Me

Add a comment
Know the answer?
Add Answer to:
I would need both SAS & R code, the output and .txt file/s, please. Because many...
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
  • The accompanying computer excel output (please see attachment on Blackboard) provides details of data and analysis...

    The accompanying computer excel output (please see attachment on Blackboard) provides details of data and analysis on the topic of “patient satisfaction”. A hospital administrator wished to study the relation between patient satisfaction (Y) and patients’ age (X1, in years) , severity of illness (X2), and anxiety level (X3). The output includes a listing of all 46 observations; descriptive statistics for each variable; and, the results of a regression analysis that uses patient satisfaction as the dependent variable, and patient’s...

  • Hallo! I have a problem in my code, I need help please in java code. My...

    Hallo! I have a problem in my code, I need help please in java code. My task is : Write a program that can read a text from a file and do frequency analysis on the letters that occur . To store information (frequency) you must use an array. Tip! The place where you collect the frequency of eg the letter A is the equivalent of the ASCII code of "A" ie 65. The array should be 127 elements. For...

  • Using Merge Sort: (In Java) (Please screenshot or copy your output file in the answer) In...

    Using Merge Sort: (In Java) (Please screenshot or copy your output file in the answer) In this project, we combine the concepts of Recursion and Merge Sorting. Please note that the focus of this project is on Merging and don't forget the following constraint: Programming Steps: 1) Create a class called Art that implements Comparable interface. 2) Read part of the file and use Merge Sort to sort the array of Art and then write them to a file. 3)...

  • Need help with C++ assignment Assignment 1 and .txt files are provided at the bottom. PART...

    Need help with C++ assignment Assignment 1 and .txt files are provided at the bottom. PART A PART B Assignment 1 #include <iostream> #include <string> #include <fstream> #include <iomanip> #include <stdio.h> #include <ctype.h> #include <string.h> #include <algorithm> using namespace std; /** This structure is to store the date and it has three integer fields **/ struct Date{    int day;    int month;    int year; }; /** This structure is to store the size of the box and it...

  • == Programming Assignment == For this assignment you will write a program that controls a set...

    == Programming Assignment == For this assignment you will write a program that controls a set of rovers and sends them commands to navigate on the Martian surface where they take samples. Each rover performs several missions and each mission follows the same sequence: deploy, perform one or more moves and scans, then return to base and report the results. While on a mission each rover needs to remember the scan results, in the same order as they were taken,...

  • I need help with research critique summary of this below article in APA format and in...

    I need help with research critique summary of this below article in APA format and in text citation and the reference en/poni%20perception%20article.pdf EATING DISORDERS 2018, VOL. 26, NO. 2, 107-126 https://doi.org/10.1080/10640266,2017.1318624 Routledge Taylor & Francis Group PREVENTION SERIES Check to Perceptions of disordered eating and associated help seeking in young women Annamaria J. McAndrew and Rosanne Menna Department of Psychology, University of Windsor, Windsor, Ontario, Canada ABSTRACT Disordered eating is common among young women, but rates of help-seeking are remarkably...

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