QuestionQuestion

The main goal of the study is to compare between the data before and after the war ( before and after 10/15/2016) , please provide descriptive and inferential statistics and statistics testes for the data and anywhere it's possible along with comments and explanation (please make it easy to understand for non-statistician to understand).

Feel free to use any statistics tool you are comfortable with.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

#importing the CSV file

data<-read.csv("D:/Work/Jan 2019/first work/kHVq5fx8QqXxzQ9lQsaJ.csv", sep=";")
data<-data[data$diagnosis !="",]#removing missing diagnosis


#changing date variable format from factor to date

data$date<-as.character(data$date)#converting the date variable from factor to character
data$new_date<-as.Date(data$date, format = "%d/%m/%Y")#converting new date variable from character to DATE

#defining the categories for group

data$cat[data$new_date>as.Date('15/10/2016', format = "%d/%m/%Y")]<-"Group 1"#after the war
data$cat[data$new_date<=as.Date('15/10/2016', format = "%d/%m/%Y")]<-"Group 2"#before the war

#analysis for gender

table(data$cat, data$gender)#creating the table containing frequency counts
##         
##          Female Male
##   Group 1    590 468
##   Group 2    333 260
prop.table(table(data$cat, data$gender))#creating the table percentages
##         
##             Female      Male
##   Group 1 0.3573592 0.2834646
##   Group 2 0.2016959 0.1574803
chisq.test(data$cat, data$gender)#conducting chi-square test
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: data$cat and data$gender
## X-squared = 0.010259, df = 1, p-value = 0.9193...

By purchasing this solution you'll be able to access the following files:
Solution.docx and Solution.R.

$75.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Statistics-R Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats