Questions
1. Go to the sources listed below and complete the following table. What can you conclude...

1. Go to the sources listed below and complete the following table. What can you conclude from the table? Any of the rankings surprise you? Explain your answer.

Table 1

Ranking

Best Country for Business (1)

Corruption Index 2017 (2)

Index of Economic Freedom 2018 (3)

1

2

3

4

5

6

7

8

9

10

Lowest

Table 2

Countries

Ranking of Best Countries for Business (1)

Ranking of Corruption Index 2017 (2)

Ranking of Index of Economic Freedom 2018 (3)

China

Germany

India

Japan

U.K.

U.S.

Table 3 Sovereign Ratings (4)

Countries

Moody’s ratings

S&P ratings

Fitch ratings

China

Germany

India

Japan

Russia

U.K.

U.S.

Sources:

Best countries for business 2017:

https://www.forbes.com/best-countries-for-business/list/

Corruption Index 2017:

https://www.transparency.org/news/feature/corruption_perceptions_index_2017

Index of Economic Freedom 2018:

https://www.heritage.org/index/ranking

Credit Rating

https://countryeconomy.com/ratings

In: Finance

1.             Hsieh-Hseih Inc. must choosebetween two copiers: The ZZ20or the GG50. (The copier chosen will continue to...

1.             Hsieh-Hseih Inc. must choosebetween two copiers: The ZZ20or the GG50. (The copier chosen will continue to be selected for the foreseeable future.)

The ZZ20costs $3,000(at t=0) and will last for three years.  For tax purposes, it will be depreciated using the straight line method over a 3- year life (at t=1, 2 and 3). The operating expenses for this copier are $2,200 per year(at t=1, 2 and 3).  This copier will require $500 of inventoryat t=0. Inventory will be decreased to $0 at t=3.

The GG50costs $3,800(at t=0) and will last for four years (t=1, 2, 3, and 4).  For tax purposes, it will (also) be depreciated using the straight line method over a 3- year life (t=1, 2 and 3). The operating expenses for this copier are $1,800 per year(for four years). This copier will require $500 of inventoryat t=0.  Inventory will be decreased to $0 at t=4.

If the appropriate discount rate is 12% and the tax rate is 40%, which copier should be selected?  Why? Be sure to quantify your answer.

In: Finance

Python Assignement Programm Assignement 1 # Description: This program is a function which calculates pi per...

Python Assignement

Programm Assignement 1

# Description: This program is a function which calculates pi per Leibniz

formula,based on the number of values passed to it.

def calculate_pi(n):

    total, sign = 0, 1

    for i in range(n):

        term = 1 / (2 * i + 1)

       total += term * sign

        sign *= -1

    total *= 4

    return total

n = int(input("How many terms: "))

print(calculate_pi(n))

PRogramm Assignement2

# This program is to modify the program for Homewor

k Assignment 1

so that it includes exception

# handling, is

, and allows the user to execute the program

multiple times

# without exiting it.

def calculate_pi(n):

   try:

       total, sign = 0, 1

       for i in range(n):

           term = 1 / (2 * i + 1)

           total += term * sign

           sign *= -1

       total *= 4

       return total

   except Exception as e:

       print("Exception occurred..")

       return 0

choice = "yes"

while(choice=="yes"):

   n = int(input("How many terms: "))

   print(calculate_pi(n))

   choice = input("Want to run it again (yes/no)? "

)

PB

Divide the program for Assignment 2 into two modules: 1. A class module which contains a class based on the Leibniz formula, including a constructor for use with the class, and 2. A program module which creates an instance of the class defined in the class module and uses the class attribute to perform the functionality required in Assignement 2. Be sure to correct any issues found with Assignement 2.

In: Computer Science

Answer the within-subjects ANOVA questions using the data below. Use α = 0.05. 1 2 3...

Answer the within-subjects ANOVA questions using the data below. Use α = 0.05.

1 2 3 4
53
49
47
37
51
34
44
44
39
36
34
39
30
34
23
42
39
37
36
34
47
25
35
34
27
33
28
31



a) Compute the corresponding effect size(s) and indicate magnitude(s).
η2 =  ;  ---Select--- na trivial effect small effect medium effect large effect

b) Make an interpretation based on the results.

At least one week differs on the GRE verbal score.

No week is different on GRE verbal score.    

c) Regardless of the H0 decision, conduct Tukey's post hoc test for the following comparisons:
2 vs. 3: difference =  ; significant:  ---Select--- Yes No
1 vs. 4: difference =  ; significant:  ---Select--- Yes No

d) Regardless of the H0 decision, conduct Scheffe's post hoc test for the following comparisons:
1 vs. 2: test statistic =______ ; significant:  ---Select--- Yes No
1 vs. 4: test statistic = ______ ; significant:  ---Select--- Yes No

In: Statistics and Probability

Police plan to enforce speed limits by using radar traps at four different locations within the...

  1. Police plan to enforce speed limits by using radar traps at four different locations within the city limits. A person who is speeding on his/her way to work has probabilities of 0.2, 0.1, 0.5, and 0.2, respectively, of passing through these locations (location 1, location 2, location 3, and location 4, respectively). The radar traps at each of the locations (location 1, location 2, location 3, and location 4, respectively) will be operated 40%, 30%, 20%, and 30% of the time. If a randomly selected person received a speeding ticket on his/her way to work, what is the probability that he/she passed through the radar trap located at location 1? (10 points)

Hint: Consider the following five events:

A: a speeding person receives a speeding ticket (note: a speeding person will receive a speeding ticket if the person passes through the radar trap when operated.)

B1: a speeding person passing through location 1,

B2: a speeding person passing through location 2,

B3: a speeding person passing through location 3,

B4: a speeding person passing through location 4.

In: Math

Create a C++ program that calculates an unbiased standard deviation of 5 input numbers. Please Submit:...

Create a C++ program that calculates an unbiased standard deviation of 5 input numbers.

Please Submit:

1. A flowchart of your program. (3 points)

2. Your C++ program with a heading comment, also appropriate spacing and indentation in the program body.

3. Copy of a screenshot after your program is executed. (Section 2 and3: 7 points)

/* ELEN 1301 Programming Assignment #8.

Name : Your name.

Student ID : Your student ID #.

Due date :

Purpose of the program : Creating a program that usus an array and calculate an unbiased standard deviation.

Section 1 : Receive a number and store it in an array. We assume there will be always 5 input numbers.

Section 2 : Repeat Section 1 five times.

Section 3 : Find the mean of the five numbers.

Section 4 : Subtract mean from each input that is stored in the array. Square it.

Section 5 : Repeat Section 4 for all the stored input, so that the summention is done.

Section 6 : Divide the sum by (N – 1), in this case it would be 4, and take a square root of the value to show the Standard Deviation.

In: Computer Science

This program is in C++ Please kindly make sure that the output exactly matches the test...

This program is in C++

Please kindly make sure that the output exactly matches the test case so I can vote a thumbs up. If it doesn't the program is wrong.

Test Cases and the given code are given after the prompt

Prompt:

Modify the given code to:

1.. Store the data in Binary file and access it   in Random Access mode.  

2.Replace Class with Structure for Employee and Department.

3. Inside each structure, replace all string variables with array of characters. please read the chapter 12(More about characters and strings). Though we do not have homework on this, the knowledge from this chapter will help you do the final exam project.

4. Make Employee and Department editable. That means, the user should be able to edit a given Employee and Department. Youc an allow the user to edit Employee name, age etc and assign him/her to different department. Similarly department name and department head can be changed. However, do not allow the uesr to Employee ID in Employee file and Department ID in department file.

5. Please note that the data will no longer be stored in the array as it was in the given code. Instead, it should be written to the file as soon as you collect the data from the user. If you are editing a record, read it from the file,collect new data from the user, store the record back to the file in the same place it was found inside the file. That means, the menu will not have options to save data to file or read data from file. Also, this should provide the ability for user to create unlimited number of employees and departments unlike in given code where you allowed only limited number of departments and employees.

Test Cases:

////////////////////////////////////

TEST CASE1:

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 1
Enter the NEW Department Data:
Dept ID: 1
Dept Name: Sales
Head of Dept Name: Anna

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 2
Enter the NEW Employee Data:
Employee ID: 1
Employee Name: John
Employee Salary: $45000
Employee Age: 23
Department ID: 1

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 5

Salary Report By Department

Dept         : Sales
Total Salary : $45000

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 2
Enter the NEW Employee Data:
Employee ID: 2
Employee Name: Susan
Employee Salary: $50000
Employee Age: 30
Department ID: 1

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 5

Salary Report By Department

Dept         : Sales
Total Salary : $95000

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 1
Enter the NEW Department Data:
Dept ID: 2
Dept Name: Marketing
Head of Dept Name: Marcus

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 2
Enter the NEW Employee Data:
Employee ID: 3
Employee Name: Adam
Employee Salary: $60000
Employee Age: 30
Department ID: 2

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 5

Salary Report By Department

Dept         : Sales
Total Salary : $95000

Dept         : Marketing
Total Salary : $60000

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 3
Which record to EDIT:
Please choose one of the following... 1 to 2 : 2

Display Department Details:
Dept ID     : 2
Dept Name   : Marketing
Dept Head   : Marcus

EDIT the Department Data:
Dept Name: Global Marketing
Head of Dept Name: Butler

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 5

Salary Report By Department

Dept         : Sales
Total Salary : $95000

Dept         : Global Marketing
Total Salary : $60000

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 4
Which record to EDIT:
Please choose one of the following... 1 to 3 : 3

Display Employee Details:
ID     : 3
Name   : Adam
Salary : $60000
Age    : 30
Dept   : 2

Edit the Employee Data:
Employee Name: Adam
Employee Salary: $75000
Employee Age: 31
Department ID: 1

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 5

Salary Report By Department

Dept         : Sales
Total Salary : $170000

Dept         : Global Marketing
Total Salary : $0

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 9
Please enter a valid choice (1 - 6): 6

Thank you, goodbye.

TEST CASE2:

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 1
Enter the NEW Department Data:
Dept ID: 1
Dept Name: HumanResources
Head of Dept Name: Maria

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 1
Enter the NEW Department Data:
Dept ID: 1
Please enter a unique Deptartment ID: 2
Dept Name: Marketing
Head of Dept Name: Samy

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 2
Enter the NEW Employee Data:
Employee ID: 1
Employee Name: John
Employee Salary: $45000
Employee Age: 35
Department ID: 9
Please enter an existing Deptartment ID: 1

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 2
Enter the NEW Employee Data:
Employee ID: 1
Please enter a unique Employee ID: 2
Employee Name: Susan
Employee Salary: $70000
Employee Age: 25
Department ID: 2

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 5

Salary Report By Department

Dept         : HumanResources
Total Salary : $45000

Dept         : Marketing
Total Salary : $70000

Human Resources Menu
1. Create Department
2. Create Employee
3. Edit Department
4. Edit Employee
5. Display Salary Report
6. -- Quit -- 
Please make a selection : 9
Please enter a valid choice (1 - 6): 6

Thank you, goodbye.

/////////////////////////////////////

The Given Code:

#include <iostream>

#include <string>

#include <fstream>

#include <sstream>

using namespace std;

class Depts

{ private:

int DeptID;

string DeptName;

string DeptHName;

public:

Depts() {}

Depts(int inId, string name, string headName)

{ DeptID = inId;

DeptHName = headName;

DeptName = name;

}

string getDeptHname() const

{ return DeptHName;

}

int getDeptHID() const

{ return DeptID;

}

string getDeptName() const

{ return DeptName;

}

void setDeptHName(string DeptHName)

{ this->DeptHName = DeptHName;

}

void setDeptID(int DeptID)

{ this->DeptID = DeptID;

}

void setDeptname(string DeptName)

{ this->DeptName = DeptName;

}

};

class Employee

{ private:

int empID;

string empName;

double empSalary;

double empAge;

int empDeptID;

public:

Employee() {}

Employee(int id, string name, double salary, double age, int dId)

{ empID = id;

empName = name;

empSalary = salary;

empAge = age;

empDeptID = dId;

}

string getEmploeename() const

{ return empName;

}

int getEmpDeptID() const

{ return empDeptID;

}

int getEmpID() const

{ return empID;

}

double getEmpAge() const

{ return empAge;

}

double getEmpSalary() const

{ return empSalary;

}

void setEmpName(string empName)

{ this->empName = empName;

}

void setEmpDeptID(int empDeptID)

{ this->empDeptID = empDeptID;

}

void setEmpID(int empID)

{ this->empID = empID;

}

void setEmpAge(double empAge)

{ this->empAge = empAge;

}

void setEmpSalary(double empSalary)

{ this->empSalary = empSalary;

}

};

int main()

{ Employee employees[5];

Depts departments[3];

int noOfDepartment = 0;

int noOfEmployees = 0;

int choice;

while (choice != 6)

{ cout << "1. Create Department"

"\n2. Create Employee"

"\n3. Write Out Data File"

"\n4. Read In Data File"

"\n5. Display Salary Report"

"\n6. -- Quit -- \n"

"Please make a selection : ";

cin >> choice;

if (choice == 1)

{ if (noOfDepartment == 3)

{ cout << "The array is full, you can not add any more Depts." << endl;

continue;

}

int dId;

string dName;

string dHeadName;

cout << "Please Enter Department Details:" << endl;

cout << "Department ID : ";

cin >> dId;

bool validId = true;

for (int i = 0; i < noOfDepartment; i++)

{ if (departments[i].getDeptHID() == dId)

{ cout << "Value must be unique!" << endl;

validId = false;

}

}

if (!validId)

{ continue;

}

cout << "Department Name : ";

cin >> dName;

cout << "Head of Department : ";

cin >> dHeadName;

Depts d(dId, dName, dHeadName);

departments[noOfDepartment] = d;

noOfDepartment++;

}

else if (choice == 2)

{ if (noOfEmployees == 5)

{ cout << "The array is full, you can not add any more Employees." << endl;

continue;

}

int eId;

string eName;

double eSalary;

double eAge;

int eDepartmentid;

cout << "Please Enter Employee Details:" << endl;

cout << "Employee ID : ";

cin >> eId;

bool validId = true;

for (int i = 0; i < noOfEmployees; i++)

{ if (employees[i].getEmpID() == eId)

{ cout << "Value must be unique!" << endl;

validId = false;

}

}

if (!validId)

{ continue;

}

cout << "Employee Name :";

cin >> eName;

cout << "Salary: $";

cin >> eSalary;

cout << "Age : ";

cin >> eAge;

cout << "Department ID : ";

cin >> eDepartmentid;

bool foundId = false;

while (!foundId)

{ for (int i = 0; i < noOfDepartment; i++)

{ if (departments[i].getDeptHID() == eDepartmentid)

{ foundId = true;

break;

}

}

if (!foundId)

{ cout << "Please enter a valid department ID: ";

cin >> eDepartmentid;

}

}

Employee e(eId, eName, eSalary, eAge, eDepartmentid);

employees[noOfEmployees] = e;

noOfEmployees++;

}

else if (choice == 3)

{ ofstream myfile1("departments.txt");

ofstream myfile2("employees.txt");

for (int i = 0; i < noOfDepartment; i++)

{ myfile1 << departments[i].getDeptHID() << " " << departments[i].getDeptName() << " " << departments[i].getDeptHname() << endl;

}

for (int i = 0; i < noOfEmployees; i++)

{ myfile2 << employees[i].getEmpID() << " " << employees[i].getEmploeename() << " " << employees[i].getEmpSalary() << " " << employees[i].getEmpAge() << " " << employees[i].getEmpDeptID() << endl;

}

myfile1.close();

myfile2.close();

}

else if (choice == 4)

{ ifstream infile;

string line;

int dId;

string dName;

string dHeadName;

noOfDepartment = 0;

infile.open("departments.txt");

ifstream infile2;

int eId;

string eName;

double eSalary;

double eAge;

int eDepartmentid;

noOfEmployees = 0;

infile2.open("employees.txt");

}

else if (choice == 5)

{ string name = "";

double salary = 0;

cout<<"\n";

cout<<"Salary Report By Department\n";

for (int i = 0; i < noOfDepartment; i++)

{ salary = 0;

name = departments[i].getDeptName();

for (int j = 0; j < noOfEmployees; j++)

{ if (departments[i].getDeptHID() == employees[j].getEmpDeptID())

{ salary += employees[j].getEmpSalary();

}

}

cout << "\nDept : " << name << endl;

cout << "Total Salary : $" << salary <<endl;

}

}

else {

cout<<"Thank you, goodbye.";

return 0;

}

}

}

Thank you so much, I will leave a positive rate

In: Computer Science

Question 2 Qui Limited was incorporated in Nova Scotia on May 21, 1936. The corporation has...

Question 2 Qui Limited was incorporated in Nova Scotia on May 21, 1936. The corporation has never carried on business in Canada, but held its annual directors' meeting in Nova Scotia each year from 1936 through 1966. Which one of the following best describes Qui Limited's residency status for Canadian income tax purposes for 2018? Question 2 options:

1) A full-time resident

2) A part-time resident

3) A deemed resident (sojourner)

4) A non-resident

Question 3 Which of the following statements about the ITA and related procedures is correct? Question 3 options:

1) There is no statutory definition of the word "income" in the ITA.

2) Courts always make decisions based on GAAP.

3) In tax matters, CRA always has the burden of proving that an assessment is incorrect.

4) An appeal in the Federal Court of Appeal must be made within 60 days from the date of the Tax Court of Canada decision.

Question 4 An overloaded external auditor takes home the audit work related to a client's taxation. Due to time pressure, the auditor asks her husband, who is an accountant too but working for another company, to help her in completing the working papers. Which of the following best describes your assessment of the auditor's action? Question 4 options:

1) This is acceptable because her husband is not working for her client.

2) She has most likely violated Canadian Auditing Standards (CAS) only.

3) She has most likely violated the CPA-Alberta Rules of Professional Conduct only.

4) She has most likely violated both CPA-Alberta Rules of Professional Conduct and CAS.

Question 5 Individuals must file their income tax returns: Question 5 options:

1) On a quarterly basis if self employed or spouse is self-employed.

2) June 15 if self-employed or spouse is self-employed.

3) If an individual's date of death is December 15, by April 30 of the following calendar year.

4) If an individual's date of death is November 15, by April 30 of the following calendar year.

Question 6 In citing the general restriction on expenses against business or property income, you would refer to: Question 6 options:

1) Subsection 18(1)a)

2) Subparagraph 18(1)a)

3) Paragraph 18(1)a)

4) Clause 18(1)a)

Question 7 Ontario Manufacturing Company is a company incorporated in the United States. It employs salespeople who live in Canada but does not have an office or any establishment bearing the company name in Canada. The salespeople visit Canadian customers, who then order from Ontario Manufacturing Company and receive goods directly from the United States. Which of the following best describes the tax status in Canada of Ontario Manufacturing Company? Question 7 options:

1) Ontario Manufacturing Company is not taxable in Canada, because it does not have a permanent establishment in Canada.

2) Ontario Manufacturing Company is subject to a withholding tax under Part XIII of the Income Tax Act on its gross revenue in Canada.

3) Ontario Manufacturing Company is subject to tax only on its Canadian sales because the location of company employees in Canada implies that there is a permanent establishment.

4) Ontario Manufacturing Company is subject to a withholding tax under Part XIII of the Income Tax Act on its net income earned in Canada.

Question 8 Amy lives in Detroit, Michigan, USA. She commutes daily to Windsor, Ontario, Canada, where she is employed by Ford Motor Company of Canada Limited. She works 9 am to 5 pm, Monday through Friday. Which one of the following best indicates Amy's residency status for Canadian income tax purposes for 2018? Question 8 options:

1) A full-time resident

2) A part-year resident

3) A deemed resident (sojourner)

4) A non-resident

Question 9 An auditor reviewing ABC Corporation discovered that $100,000 of corporate revenue was being deliberately recorded in the books as a debit to Bank and a credit to shareholders loan. Which of the following statements is true? Question 9 options:

1) This transaction is an example of tax avoidance.

2) This transaction is an example of tax planning.

3) This transaction does not fit any the above categories.

4) This transaction is an example of tax evasion.

Question 10 ABC Inc. is a private corporation incorporated in Canada in 1991. All of its income is derived from sources originating in New Zealand. All the ABC shareholders reside permanently in the United States, where they make all the major decisions for the company. Which of the following accurately describes ABC's tax status in Canada? Question 10 options: 1) ABC is not a resident of Canada and is taxed in Canada only on income earned from its permanent establishment in Canada.

2) ABC is a resident of Canada and taxed in Canada on its world income.

3) ABC is not a resident of Canada and is not subject to tax in Canada.

4) ABC is not a resident of Canada but is subject to a withholding tax on dividends paid to its shareholders in the United States.

In: Accounting

A researcher conducts a long-term study of the correlation between the number of children a family...

A researcher conducts a long-term study of the correlation between the number of children a family has (X) and the number of pets they have 20 years later (Y). He finds the following results:

Children (X)                                   Pets 20 years later (Y)

2                                                       4

4                                                       6                

3                                                       1

0                                                       2

1                                                       2

First, the researcher wants to calculate the correlation between the two variables. Using this dataset, calculate r. (3 pts)

Next, the researcher wants to use his knowledge about the correlation to be able to predict future pet ownership based on current family size. Using the information from the original test, calculate the linear regression equation for this dataset (2 pts)

Finally, use the regression equation to predict the number of future pets owned by a family that currently has 3 children. Use it again to predict the number of future pets owned by a family with 1 child. Make sure to label your answers clearly (1 pt each)

In: Statistics and Probability

This question requires using Rstudio. This is following commands to install and import data into R:...

This question requires using Rstudio. This is following commands to install and import data into R:

> install.packages("ISLR")
> library(ISLR)
> data(Wage)

The required data installed and imported, now this is description of the data:

This dataset contains economic and demographic data for 3000 individuals living in the mid-Atlantic region. For each of the
3000 individuals, the following 11 variables are recorded:

year: Year that wage information was recorded
age: Age of worker
maritl: A factor with levels 1. Never Married 2. Married 3. Widowed 4. Divorced and 5.
Separated indicating marital status
race: A factor with levels 1. White 2. Black 3. Asian and 4. Other indicating race
education: A factor with levels 1. < HS Grad 2. HS Grad 3. Some College 4. College Grad
and 5. Advanced Degree indicating education level
region: Region of the country (mid-atlantic only)
jobclass: A factor with levels 1. Industrial and 2. Information indicating type of job
health: A factor with levels 1. <=Good and 2. >=Very Good indicating health level of worker
health ins: A factor with levels 1. Yes and 2. No indicating whether worker has health insurance
logwage: Log of workers wage
wage: Workers raw wage

This question continues with the Wage dataset.

You wish to fit a multiple regression model to predict wage using year, age, and jobclass.

However, you are interested in whether the change in wage as a worker ages differs between

industrial workers and information workers. Fit the appropriate model and test the

hypothesis of interest. Include your results and your conclusion.

Please provide all necessary codes using Rstudio.

In: Statistics and Probability