3.Using the iris dataset: a) combine the Setosa and Versicolor

    

3.Using the iris dataset:
a) combine the Setosa and Versicolor into group “0” and label the Virginica to “1”. Create a new variable called iris$Group with the 0 or 1 labels,   

b) build a logistic regression model using any available data that will predict the observation being Virginica ( value of 1 in Group variable),
c) calculate the probability of a new plant being a Virginica for the following parameters: 

Sepal.Width =5 Petal.Length =10 Petal.Width =7 Sepal.Length=9 

4.Using the kyphosis dataset:
a) convert the kyphosis$Kyphosis variable to numeric, assign a 1 to present and a 0 to absent,
b) build a logistic regression using all other variables and estimate the probability of the observation having a “present” hyphosis. What can you say about the coefficients? Are the significant?
c) calculate the probability of kyphosis being “present” for the following observation: Age=50, Start=10, Number=5. 

5. Using all the single variable regressions from Exercise 1, test if the variable pairs are homoscedastic or heteroscedastic. Plot your findings. Using the plot(x=my_x_variable, y=my_y_variable, type=”p”) function. Use my_data$variable_name to define x and y variables in the function. 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Find three recent (no older than 6 months) news articles

Find three recent (no older than 6 months) news articles for a European country or countries. Briefly summarize each article in your own words, add your comments, and include the URL (web address) as well as the date of your findings. Use trusted and reliable resources for quality news coverage.

Assignment_1_Finance_206

Please select a company that your group would like to analyze throughout the semester. You will use the same company for three assignments. The goals of the first assignment are (1) to introduce you to the 10K/Q reports issued by US corporations in accordance with SEC regulations and (2) to

Read and reflect on one of the following articles. Google

 Read and reflect on one of the following articles. Instructions Write a paper in which you: Analyze the following questions associated with your chosen article and discuss them using concepts you learned in this course. What ideals, effects, and consequences are at stake? Have any moral rights been violated? What

Part 1: Beta 1. Search for the beta of your

Part 1: Beta 1.  Search for the beta of your company (Group Project) 2.  In addition, find the beta of 3 different companies within the same industry as your company (Group Project). 3.  Explain to your classmates what beta means and how it can be used for managerial and/or investment decision 4. 

The general guidelines for the paper are as follows: select

  The general guidelines for the paper are as follows: select a topic that interests you – this can be based on your location, your activities, or your lifestyle – and write a research paper indicating the impact of climate change on your particular subject of interest. APA format (no

you interviewed the CEO and evaluated the organization to gain

you interviewed the CEO and evaluated the organization to gain insight into the CEO’s perspective of the organization. With this information, you will be able to assist the CEO and leaders in developing a strategic plan to encourage future success of the organization. Create a summary that you will present

Lesson 11 Discussion. After reviewing the readings/video (found in the

Lesson 11 Discussion. After reviewing the readings/video (found in the readings), please consider the following for your discussion post: · What is the importance of documentation in the practice of Social Work? · Please share your thoughts on the video and what you have learned about separating fact and evidence

Choose an industry or market* and, based on the material

Choose an industry or market* and, based on the material in the last few chapters, analyze what type of market structure best describes your chosen industry/market.  (i.e., is your industry monopolistically competitive, a monopoly, an oligopoly, or a perfectly competitive market).  Be very specific and provide data and examples to

Many of us in the U.S. have some idea/knowledge about

  Many of us in the U.S. have some idea/knowledge about Jim Crow/segregation in the U.S., but the history of apartheid in South Africa is something less commonly learned about here.  Based on what you read last week and this week to introduce you to apartheid, answer the following questions: 1. The white

Making judgement as to whether a theory could be adapted

Making judgement as to whether a theory could be adapted for use in research is very important.  Describe the internal and external criticism that is used to evaluate middle range theories. APA 7th edition 400 words as discussion post with 2 references  2 replies to post with citations.  Less than

John Watson founded the behaviorist perspective of psychology, which evolved

 John Watson founded the behaviorist perspective of psychology, which evolved during the first half of the 20th century. As Watson’s quote suggests, the goal of behaviorism was to understand and be able to predict behavior under certain environmental conditions. Early studies in behaviorism included the use of animals. For example,

Review the NCAA Drug Testing Policy and information at http://www.ncaa.org/sport-science-institute/ncaa-drug-testing-program.

  Review the NCAA Drug Testing Policy and information at http://www.ncaa.org/sport-science-institute/ncaa-drug-testing-program.  What are the responsibilities of the Year-Round Drug Testing Site Coordinator?  From these policies and responsibilities, is there any discretion left to the institution or is it cut and dry?  Finally, what are the procedures for receiving an exception

Mr. Frank is a 42-year old male who presents to

   Mr. Frank  is a 42-year old male who presents to the free- clinic with complaints of a cough and fever. He reports cough and fever began 2 weeks ago. Symptoms initially were accompanied by dyspnea on exertion, but he is now short of breath even at rest. Upon taking

Part A: 100 words each Question 1.How can coaching activities

   Part A: 100 words each Question 1.How can coaching activities benefit the culture in the mentee’s work environment? How can you leverage your mentee’s knowledge, strengths, and skills to create a positive outcome for the individual and work environment? 2.Describe the follow-up schedule you will use with your mentee.

Read Sidebar 5-5 on page 324 in your textbook. Then

Read Sidebar 5-5 on page 324 in your textbook.  Then respond to the following questions: 1) What do you think of the European practice of holding consumers more accountable for the losses incurred from skimming if ATM cards? 2) Are you concerned that your ATM card could be skimmed by

Loans to Finance Emergency Management Projects Response Nursing Assignment Help

Comment on one of the Key Findings Described in the Toner et al Document            According to Toner et al. (2009), disaster preparedness can be measured based on analysis of potential risks of a disaster .Identification of potential risks is critical in identification of the necessary resources to improve disaster preparedness.