Generalized Linear Models Homework # Please do it in R

Goal

Implement a basic character recognition system of handwritten digits using logistic regression. The data set provided contains instances of the 10 digits available (0 through 9). Your goal is to train and test a logistic regression model that classifies the image of a digit as even or odd.

Task

Download the training and test sets (https://drive.google.com/file/d/1uMCvIV-KPzFQBeOCVvFWqvISUUrySLzH/view?usp=sharing). 

Two files are provided. Each of these files contains thousands of 28×28 grayscale images.

Each image is encoded as a row of 784 integer values between 0 and 255 indicating the brightness of each pixel. The original label is an integer between 0 and 9 and it represents the actual digit the image actually encodes. The file contain 785 columns. The first column corresponds to the digit labels (0-9) and the remaining 784 columns correspond to the pixel values of the 28×28=784 pixels of the image.

If you want to see the image encoded in each row, you can use the following functions (in R):

rotate <- function(x) {

  return(t(apply(x, 2, rev)))

}

plot_matrix <- function(vec) {

  q <- matrix(vec, 28, 28, byrow = TRUE)

  nq <- apply(q, 2, as.numeric)

  image(rotate(nq), col = gray((0:255)/255))

}

If you want to plot the third image, for example, you can call the plot function as follows: 

plot_matrix(mydata[3, 2:785])

=========================================================================================

1. Relabel each row with a 1 if the digit it corresponds to is even, and 0 if it is odd.

2. Train a logistic regression model to learn the binary variable you just created using all the columns that correspond to pixel values as inputs.

3. Study and use the ROC (https://en.wikipedia.org/wiki/Receiver_operating_characteristic (Links to an external site.)) to understand the effects of various threshold values for classification.

# Please do it in R

Week 2 Discussion Foundations

 

Topic 1

Based on the following titles of research studies, identify what you believe to be the specific type of quantitative or qualitative design of the study and the rationale for your selection. Refer to the links above for descriptions of research designs.

1. Determining the effect of position on heel pressure in older adults. 
2. Factors that influenced the development of democracy in America.
3. The relationship between  physical activity and GPA in nursing students. 
4. Determining the effect of a new drug to treat brain tumors.
5. Coping strategies of chronically ill men and women. 
6. Determining the incidence of drug abuse in RNs in community hospitals.
7. The meaning of living with  COPD. 
8. Exploring the Aborigine culture.

Topic 2
Select one of the suggested references listed below. Based on your selection, complete the following tasks:

  • Identify and describe the research problem, purpose, objectives, and hypothesis identified in the article.
  • Describe how you would evaluate the credibility of the research article.
     

References:

Fitzwater, J., Johnstone, C., Schippers, M., Cordoza, M., & Norman, B.  (2019). A comparison of oral, axillary, and temporal artery temperature  measuring devices in adult acute care. MEDSURG Nursing 28 (1), 35-41.

Gibbon, G. & Crane, J. (2018). The impact of ‘missed care’ on the professional socialisation of nursing students: A qualitative research study. Nurse Education Today 66(2018), 19-24. https://doi.org/10.1016/j.nedt.2018.04.002

Purtzer, M.A., Hermansen-Kobulnicky, C.J. (2016). Optimizing the benefits of self-monitoring among patients with cancer. Oncology Nursing Forum 43(6), E218-225.         doi: 10.1188/16.ONF.E218-E225

Tongvichean, T., Aungsuroch, Y., & Preechawong, S. (2019). Effect of self-management exercise program on physical fitness among people with prehypertension and obesity: A quasi experiment study. Pacific Rim International Journal of Research, 23(1), 6-17.

Essay writing

https://www.northjersey.com/story/life/columnists/2018/01/23/clearing-up-confusion-freedom-speech/1054711001/

https://www.cnn.com/2021/01/12/politics/first-amendment-explainer-2021-trnd/index.html

https://www.huffpost.com/entry/thinspiration-blogs_n_1264459

https://brightspace.ccc.edu/d2l/le/content/149023/viewContent/3751033/View

https://www.npr.org/2012/02/22/147257716/is-a-lie-just-free-speech-or-is-it-a-crime

https://www.theatlantic.com/national/archive/2011/06/constitutional-myth-5-corporations-have-the-same-free-speech-rights-as-individuals/240874/

https://www.nytimes.com/2014/11/30/magazine/do-online-death-threats-count-as-free-speech.html

Essay Assignment :  How Free Should Speech Be?

Length:  Four to Six complete pages Minimum Amount of Sources:  Must use at least three sources.

Introduction:  Begin the essay with a hook or attention grabber to draw the reader into the essay. Then give a brief explanation of American free speech principles.  Where does the right to free speech come from?  What is the idea behind it?

How are these ideas being challenged in the modern world? You may write this using your own ideas and understanding, without using sources, but any specific details you look up must be cited to the source they came 

from.  You may also choose to do this by summarizing the article “The Problem of Free Speech in an Age of Disinformation” by Emily Bazelon. The last sentence in the introduction, which must be your thesis, must directly answer the prompt question, “What types of speech should 

be prohibited and why?”

Body Paragraphs:  (Must have at least three, and will probably require more to reach page count). Each body paragraph should be focused on one specific type of speech that you believe should be prohibited.  The paragraph must begin with a topic sentence that lays out the specific free speech issue this paragraph will discuss.  Explain the debatable speech activity in more detail (use specific examples if possible).  Then explain why you believe this type of 

activity should be illegal.  Support your explanation with specific examples, quotes, and paraphrases from sources.  Everything in the paragraph must be about this one specific free speech issue.  All body paragraphs must have at least two pieces of supporting evidence in them.  Any information from sources must have a parenthetical citation showing where it came 

from.Counter Argument Paragraph:  Choose one of the specific types of speech you argued should be prohibited in a body paragraph.  Explain the position of someone who would disagree with you and believes that type of speech should be protected.  Explain their reasoning thoroughly and fairly.  Then, rebut their position.  Concede anything they are right about, and then explain why you still believe the issue should be prohibited.

Conclusion Paragraph:  Use a traditional conclusion paragraph to restate your thesis and topic sentences and then lead the reader out of the essay.

Important Notes:  You must use at least two pieces of supporting evidence in each body paragraph.  These can be quotes or paraphrases from the sources or examples.

While you should paraphrase more than quote, you must quote directly at least twice in this essay.  Choose your quotes carefully.  

You must use at least three sources in this essay.  The first time you mention a source you should fully introduce it with the author’s full name and the title.  After that, refer to it by the author’s last name for the rest of the essay.

Anything coming from a source must have a parenthetical citation showing 

due friday……… philosophy …… no essay

   

due in 48 hrs 

Based on USA Philosophy 

The attachment (FALD master list)  has the instructions and you must follow them completely

There is a list of 45 

each answer 1-45 will look like  #4 in the attachment which is like this: 

Appeal to common practice 

What it is: This is an attempt to justify an action or a practice (rather than a claim) by claiming that the action or practice is common. Caution: This may be a roundabout way of requesting “fair play,” in which case the person has bypassed the issue of what constitutes “fairness” (since that’s difficult to answer!) and has certainly in some instances circumvented the law or an established policy. The point is that even if it is true that lots of people do something, this fact by itself is not a sufficient reason to engage in their practice. Nazism and racism are obvious examples of things lots of people do, or have, engaged in, but that doesn’t justify the behavior. Example: “Everybody comes in late once in a while, so I’m not going to worry when I walk into class fifteen minutes late today.” 

_________________________________________________________________________

The attachment has these instructions that you must follow and must edit the attachment 

 Assignment Details (Repeated on MS Word Document)

Our treatment of all of these – and the many more that you can find on the Internet! – will be selective, but this constitutes our required list.  So, this is the Big List, and your ASSIGNMENT is to:

  1. State what each FALD is (e.g., answer the question, “What is a circumstantial ad hominem fallacy?”);
  2. Give a clear example of each;
  3. Add a clear explanation of how the FALD gets used, making sure that your explanation is clear enough so that it separates the particular FALD you are writing about from all other FALDS that may otherwise resemble it;
  4. Refrain from using any of my words or examples that you may come across in subsequent “exam preparation” and “classroom presentation” copies of this list, and remove any of my own included examples once you have used them to help you understand what we are doing;
  5. You are free to use other people’s examples (although I prefer fresh examples), but when you do so, you must include a citation, preferably embedded within the text as opposed to printing the entire URL.

Answers for each 1-45 must look like example #4 which is the correct way 

________________________________________________________________________________

second attachment has information you can use or that may be helpful

business proposal

 

Business Proposal

The Business Proposal is the major writing assignment in the course. You are to create and submit a formal proposal that suggests how to change something within an organization. This organization can be large or small, a place of employment now or in the past, or an organization to which the students belong. From past experiences, it is best to use a business with fewer than 200 employees, and one with which you have personal experience. It could be a place where you currently work or a place you have worked or volunteered in the past.

The change can be specific to a unit or can apply to the whole organization; it can relate to how important information is distributed, who has access to important information, how information is accessed, or any other change in practices the students see as having a benefit. The proposal should be directed to the person or committee with the power to authorize the change. However, if you are working within a large organization, and asking for a small organizational change, communicating with a CEO or president may not make the most sense. You need to think about who within the organization might be the best person for the type of change suggested.

For the submission, you are to follow the guidelines for formal proposals available in Chapter 10 of the text. You can review 10.1, 10.4, and 10.19 for more information about specific components for a well-written formal business proposal. A complete proposal must have all required sections of a formal report excluding the copy of an RFP and the Authorization. The final draft of the proposal should be 1500–2000 words, and include the following necessary formal proposal components:

  • Letter of transmittal
  • Executive summary
  • Title page
  • Table of contents
  • List of illustrations
  • Introduction
  • Background: Purpose/problem
  • Proposal: plan, schedule, details
  • Staffing
  • Budget
  • Appendix

Formatting does matter for this assignment, and you are to check the text for details about how to format and draft the different proposal segments. Proposals don’t just have text; graphics and charts are necessary, too. In addition, research is important, and footnotes and references must be included. All content should be concise, clear, and detailed. The proposal should be well-written with appropriate grammar, spelling, and punctuation.

This is a scaffolded writing project that consists of four assignments.

different MSS processes currently used in business for a presentation to leadership

 You are a consultant that specializes in enterprise resource planning (ERP). You have been hired by a small start-up manufacturing company, with fewer than 500  hundred employees, that specializes in electronic devices. The CEO of the company would like to incorporate a management support system (MSS) into the  organization to help in making business decisions. This system will allow managers at the different levels to easily retrieve information from various databases in  the organization to assist them in running scenarios, performing what-if analyses, and tracking organizational performance to determine goal achievement. You have been asked by leadership to present on how to integrate an MSS into their organization and how it will help them gain a competitive advantage over  other companies. Throughout this course, you will be completing different assignments that will apply to this company. Research different MSS processes currently used in business. Create a chart that compares at least three MSS’s potential using Microsoft Excel®. Create a 10- to 12-slide, multimedia-rich presentation that includes the following: • The important features and benefits of using an MSS • What types of decisions the system will support and how an MSS will lead to improved decision-making • How the three levels of management will utilize the system and the value to each level • How the MSS supports establishing a competitive advantage • A brief summary of tasks the IT department must do in setting up an MSS and for ongoing maintenance of an MSS • A comparison chart of at least three MSSs • What recommendation on MSS would you make to the organization 

Environmental Injustice Impeding Health and Happiness

 In this assignment, you will examine an example of Environmental Injustice and discuss how ethnicity and socioeconomic status are factors in this injustice. Instructions: • Research and find a recently published article or an accredited website (.org, .edu) that describes a current environmental injustice. Describe how particular minority groups or people of lower socioeconomic status are affected by this environmental injustice. • Find an additional resource that describes three (3) negative consequences of the environmental injustice or further proves there is a considerable problem negatively affecting the health and well-being of local citizens. Describe the lasting or long term consequences of the health concerns caused by exposure to degraded environmental conditions. Prove that this particular injustice is a concern by providing cases, statistics, or case studies demonstrating this is an ongoing concern in the United States or a specific country. Requirements: • Provide multiple pieces of supporting evidence in your claims, using at least two (2) scholarly resources formatted in APA. • Provide at least one (1) peer response that elaborates on your classmate’s ideas with further comment or observation, presents a relevant new idea or viewpoint for consideration, and raises a question, or politely offers an alternative perspective. • Post the assignment and your response to the Assignment Forum by the due dates listed above. 

Human Trafficking – Discussion #3

***  Each discussion should be 300+ words 

Discussion Prompt: Despite international agreements and national laws banning slavery, it continues in all parts of the world in many different forms. Slavery today includes: Debt bondage or bonded labor – poor people, with no other source of help have to take out loans from their employer to meet their basic needs and get trapped in an unending cycle of loans and impossible repayments; human trafficking – transporting or receiving people, who have been abducted or deceived with offers of good jobs, and then forcing them to work in exploitative conditions that they would not have chosen; descent slavery – some people are born into slavery because they belong to a group discriminated against by their society, their rights are ignored and they are treated as property; forced domestic service – Hidden away from public notice in private homes, domestic workers can suffer a range of abuses at the hands of their employers; and the worst forms of child labor – this may include debt bondage to pay off parents’ debts, commercial sexual exploitation or forced recruitment into armed forces.

As a consumer of international, and national, products that may or may not have been made at the hands of an enslaved individual, what are your responsibilities, if any?

Concepts in Nursing and Pathophysiology (Due 24 hours)

 

1) Minimum 5 full pages and 3 slides with speaker notes (each one)  (Follow the 3 x 3 rule: minimum three paragraphs per part)

             Part 1: Minimum 3 pages

             Part 2: minimum 1 page

             Part 3: Minimum 1 page

             Part 4: Minimum 3 slides with speaker notes

Submit 1 document per part

2)¨******APA norms

          All paragraphs must be narrative and cited in the text- each paragraphs

          Bulleted responses are not accepted

          Dont write in the first person 

          Dont copy and pase the questions.

          Answer the question objectively, do not make introductions to your answers, answer it when you start the paragraph

Submit 1 document per part

3)****************************** It will be verified by Turnitin (Identify the percentage of exact match of writing with any other resource on the internet and academic sources, including universities and data banks) 

********************************It will be verified by SafeAssign (Identify the percentage of similarity of writing with any other resource on the internet and academic sources, including universities and data banks)

4) Minimum 3 references per part not older than 5 years

Part 1: minimum 4 references not older than 5 years

Part 4: minimum 4 references not older than 5 years

5) Identify your answer with the numbers, according to the question. Start your answer on the same line, not the next

Example:

Q 1. Nursing is XXXXX

Q 2. Health is XXXX

6) You must name the files according to the part you are answering: 

Example:

Part 1.doc 

Part 2.do

__________________________________________________________________________________

Part 1: Concepts in Nursing

Topic: Climate Change

Follow this outline when writing the policy brief:

1. Describe the policy health issue. Include the following information:

a. What population is affected

a. At what level does it occur (local, state, or national), 

c. Evidence about the issues supported by resources.

2. Create a problem statement.

3. Provide suggestions for addressing the health issue caused by the current policy.

4.  Describe what steps are required to initiate policy change. 

a. Include necessary stakeholders (government officials, administrator) 

b.  budget or funding considerations

5. Discuss the impact on the health care delivery system.

Include three peer-reviewed sources and two other sources to support the policy brief.

Part 2: Pathophysiology

1. Describe some of the more common pathophysiological changes and abnormal findings associated with musculoskeletal, metabolic, and multisystem health dysfunctions. 

2. Explain what symptoms are associated with the findings and how these affect patient function.

Part 3: Pathophysiology

1.  Explain the risk factors for osteoporosis. 

2. What can a nurse do to help manage this health condition to restore the patient to optimal health?

Part 4: Pathophysiology

Topic:  new treatment tool for the management of diabetes in adults or children 

You should include speaker notes on the 3 slides that expand and deepen the information on the devices. Therefore the information must be relevant and complementary.

Copying and pasting of the same information are not allowed.

Images are not allowed.

 According to Incretin Replacement Therapy: A New Treatment Tool for Type 2 Diabetes. 

Please, check the link

https://www.medscape.org/viewarticle/549215

 1. Describe how support can be offered in these respective areas as part of a plan of care for the patient. Provide examples. 

Self-reflection

  

Mixed methods research is viewed as the third methodological movement that emerged in response to the limitations of quantitative or qualitative methods alone. While the purists’ view of the dichotomy between positivist and constructivist philosophies is prevalent, mixed methods research affords researchers an opportunity to use a more pragmatic approach to answer the research question.
Mixed Methods is a research methodology that draws on potential strengths of both qualitative and quantitative methods. This research approach requires a purposeful mixing of methods in data collection, data analysis and interpretation of the evidence. The key word is mixed, as an essential step in the mixed methods approach is purposeful  integration of data at an appropriate stage in the research process. Purposeful data integration enables researchers to seek a more panoramic view of phenomena from different viewpoints and through diverse research lenses.
Qualitative Research

underlying philosophy of Constructivism (also known as Idealism)
considers knowledge (reality) to be ‘constructed’ (i.e., shared meaning or interpretation of the nature of being in the world)
constructions are subjective (i.e., subject to individual interpretation)
uses inductive reasoning (research-then-theory approach) where 1. categories/themes emerge from the data during analysis, and 2. categories/themes play an active role in development of theory

Quantitative Research

underlying philosophy of Positivism (also known as Naturalism)
considers knowledge to be created by application of natural science methods

knowledge is objective based on: 1. empiricism (knowledge based on empirical observation); 2. testing and verification of theories, and 3. development of universal laws
uses deductive reasoning (theory-then-research approach) where: 1. research design is tightly structured and 2. research questions are highly specific (usually formulated as hypotheses)

I am one of those nurse researchers who has conducted research using both Qualitative and Quantitative methodologies, as well as a third methodology called Mixed Methods.  Read a bit about the philosophy of this Mixed Methods research method below.
Mixed Methods Research

does not adhere to particular approaches based on philosophical underpinnings
combines Quantitative and Qualitative research methods
requires a pragmatic approach to research where research design is seen as a choosing of methods that best facilitate understanding of a problem

Ref:
UKEssays. (November 2018). Comparison of Qualitative and Quantitative Research Methods. Retrieved from https://www.ukessays.com/assignments/qualitative-quantitative-research-methods