MATH4/68052 (GLM’s and Survival Analysis) Coursework 2023-24R

Java Python MATH4/68052 (GLMs and Survival Analysis) Coursework 2023-24

The marks awarded for this coursework constitute 20% of the total assessment for the module.

Your solutions to the coursework should be no more than several pages long, including text, plots, R output and the code used.  It should take, on average, around 10 hours to finish. You are advised to complete all the computing parts first before typing your submission document.

Please read all the instructions and advice given below carefully. The submission deadline is 11:00 am on Friday 22 March 2024.

Late Submission of Work: Any student’s work that is submitted after the given deadline will be classed as late, unless an extension has already been agreed via mitigating circumstances or a DASS extension

The following rules for the application of penalties for late submission are quoted from the Uni- versity guidance on late submission document, version 1.3 (dated July 2019):

”Any work submitted at any time within the first 24 hours following the published submission deadline will receive a penalty of 10% of the maximum amount of marks available.  Any work submitted at any time between 24 hours and up to 48 hours late will receive a deduction of 20% of the marks available, and so on, at the rate of an additional 10% of available marks deducted per 24 hours, until the assignment is submitted or no marks remain.”

Your submitted solutions should all be in one typed document.  This should preferably be prepared using LaTeX or R Markdown.  Word is also permissible.   For each question you should provide explanations as to how you completed what is required, show your workings and also comment on computational results, where applicable.

When you include a plot, be sure to give it a title and label the axes correctly.

When you have written or used R code to answer any of the parts, then you should list this R code after the particular written answer to which it applies.  This may be the R code for a function you have written and/or code you have used to produce numerical results, plots and tables.  R code should also be clearly annotated.

Do not use screenshots of R code/output. Instead, to include R code use the verbatim environment.

Your file should be submitted through the module site on Blackboard to the Turnitin assessment under Assesment & Feedback entitled ’Coursework (March 2024)’ by the above time and date.  The work will be marked anonymously on Blackboard so please ensure that your filename is clear but that it does not contain your name and student id number. Similarly, do not include your name and id number in the document itself.

Turnitin will generate a similarity report for your submitted document and indicate matches to other sources, including billions of internet documents (both live and archived), a subscription repository of periodicals, journals and publications, as well as submissions from other students.

Please ensure that the document you upload represents yodai 写MATH4/68052 (GLM’s and Survival Analysis) Coursework 2023-24R ur own work and is written in your own words. The Turnitin report will be available for you to see shortly after the due date.

This coursework should hopefully help to reinforce some of the methodology you have been study- ing, as well as skills in R.

The data we will be using for this coursework comprise n = 712 records of the passengers sailing on RMS Titanic that sank in the North Atlantic Ocean on 15 April 1912 after hitting an iceberg. The estimated total number of passengers and crew on board was 2224.  The titanic . df data frame for this coursework contains the following variables:

● Survived: 1 = yes, 0 = no

● Pclass: Passenger class - 1 (1st), 2 (2nd), 3 (3rd)

● Sex: ‘male’, ‘female’

● Age:  1 = child (under 18), 2 = adult (18 to 60), 3 = senior (over 60)

● Parch: Number of parents and/or children on board for a passenger

● Embarked: Port of embarkation - C = Cherbourg, S = Southampton, Q = Queenstown

Survived is a binary response variable and the exercise will be to look at logistic regres- sion models which can be used to predict the probability that a passenger survived, given their particular set of covariate values.

Parch is to be regarded as a numeric variable, while each of the others are factors.  The code in the R script file start . r can be run to load the data and convert the relevant variables to factors in R using the constraint that the first (reference) level is set to zero.

1. Write down the full additive (but no interactions) logistic regression model with a logit link and explain the notation you have used, including the terms in the linear predictor.  Fit this model to the data.  Present the R ‘summary’ of your fitted model.  Explain and comment on the individual Z-tests of the hypotheses that the true parameter values are equal to zero.           [5 marks]

2.  Fit a reduced model which excludes the variables Parch and Embarked.  Perform an analysis of deviance to show that these two variables do not make a significant contribution to the fit.      [1 mark]

Can this model, now just containing the variables Pclass, Sex, and Age, be reduced any further? Provide statistical evidence for your answer.            [3 marks]

The following questions are all just based on using the fitted model which includes the three covariates Pclass, Sex, and Age.

3.  Calculate the values for a new binary variable in R called pred . surv whose i’th element is equal to 1 ifˆ(p)(xi ) > 0.5 and equal to 0 ifˆ(p)(xi )  ≤ 0.5.  Here, ˆ(p)(xi ) denotes the estimated probability of survival for the i’th sample case who has a vector of covariates xi.               [1 mark]

Tabulate the values in Survived against pred . surv and calculate the proportion of sample cases correctly classified by the model. Briefly comment on the result.                [2 marks]

4.    (i)  Estimate the odds of survival for an adult female travelling 2’nd class.  Briefly comment on the result.           [1 mark]

(ii)  Estimate the odds ratio of survival for a adult female travelling 1’st class to a senior male travelling 3’rd class. Briefly comment on the result.                    [2 marks]

5. Estimate the probability of survival for an adult female travelling 2’nd class and find an approximate 95% confidence interval for the true value         

源码链接: https://pan.quark.cn/s/fa13cd6c6c8d Chrome浏览器作为一款备受青睐的网页浏览器,凭借其出色的稳定性和运行速度获得了广泛认可。 然而出于安全考量,Chrome系统默认不兼容ActiveX插件,因为ActiveX技术主要应用于Internet Explorer,它赋予网页内容与用户本地系统交互的能力,但同时也可能引发潜在的安全隐患。 不过在某些特定工作场景下,比如在企业内部网络环境或需要与老旧应用程序整合时,可能仍需在Chrome中启用ActiveX控件。 为此我们必须掌握在Chrome浏览器下加载和运用ActiveX的方法。 首先需要明确ActiveX的本质。 ActiveX是由微软设计的一种技术框架,旨在开发可在网页环境中运行的控件,这些控件能够完成多种功能,包括视频播放、应用程序组件运行或与硬件设备通信等。 ActiveX控件多以OCX(OLE控件)格式发布。 在Chrome浏览器中启用ActiveX需要采取额外措施,因为该浏览器本身并不支持此项技术。 以下是几种常见的解决方案: 1. **应用Chrome的兼容性设置**:部分Chrome版本提供了" --enable-internal-activex"命令行参数,可通过此参数使浏览器具备加载ActiveX控件的能力。 用户可在启动Chrome时,于快捷方式的目标路径后附加该参数来激活此功能。 例如:"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --enable-internal-activex。 2. **安装第三方插件**:市面上存在一些第三方插件,例如"IE Tab"或"ActiveX Con...
标题SpringBoot与微信小程序结合的健康饮食平台研究AI更换标题第1章引言介绍健康饮食平台的研究背景、意义、国内外研究现状、论文方法及创新点。1.1研究背景与意义阐述健康饮食平台在当前社会的重要性及其市场需求。1.2国内外研究现状分析国内外健康饮食平台的发展现状及趋势。1.3研究方法及创新点概述本文采用的研究方法和技术创新点。第2章相关理论总结健康饮食、SpringBoot及微信小程序的相关理论。2.1健康饮食理论介绍健康饮食的基本原则和营养学知识。2.2SpringBoot框架阐述SpringBoot框架的特点、优势及在项目中的应用。2.3微信小程序技术介绍微信小程序的开发技术、特点及其用户群体。第3章健康饮食平台设计详细介绍健康饮食平台的设计方案,包括前端和后端设计。3.1平台架构设计给出平台的整体架构、模块划分及交互流程。3.2数据库设计介绍数据库的设计思路、表结构及数据关系。3.3前后端交互设计阐述前后端数据交互的方式、接口设计及安全性考虑。第4章微信小程序实现介绍微信小程序的具体实现过程,包括页面设计、功能实现等。4.1页面设计与布局给出微信小程序的页面设计思路、布局及交互效果。4.2功能实现与测试详细介绍微信小程序各项功能的实现过程及测试方法。4.3用户体验优化阐述如何提升微信小程序的用户体验,包括界面优化、性能优化等。第5章平台测试与优化对健康饮食平台进行测试,并根据测试结果进行优化。5.1测试环境与数据介绍测试环境、测试数据及测试方法。5.2测试结果分析从功能、性能、用户体验等方面对测试结果进行详细分析。5.3平台优化策略根据测试结果提出平台优化策略,包括代码优化、功能改进等。第6章结论与展望总结本文的研究成果,并展望未来的研究方向。6.1研究结论概括本文的主要研究结论和平台实现效果。6.2展望指出本文研究的不足之处以及未来研究的方向和改进点。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值