Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linear or logistic regression for discrete data: Simulate continuous data from the regression model, z = a + bx + error. Set the parameters so

Linear or logistic regression for discrete data: Simulate continuous data from the regression model, z = a + bx + error. Set the parameters so that the outcomes z are positive about half the time and negative about half the time.

(a) Create a binary variable y that equals 1 if z is positive or 0 if z is negative. Fit a logistic regression predicting y from x. (b) Fit a linear regression predicting y from x: you can do this, even though the data y are discrete. (c) Estimate the average predictive comparisonthe expected difference in y, corresponding to a unit difference in xbased on the fitted logistic regression in (a). Compare this average predictive comparison to the linear regression coefficient in (b).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Differential Equations With Boundary-Value Problems

Authors: Dennis G Zill

9th Edition

133751506X, 9781337515061

More Books

Students also viewed these Mathematics questions

Question

How are the residuals used in estimating ?????

Answered: 1 week ago

Question

2. Information that comes most readily to mind (availability).

Answered: 1 week ago