Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This Q requires experience in R programming First, simulate some data. then creat a small dataset of 100-200 datapoints. The dataset should have one categorical

This Q requires experience in R programming

First, simulate some data. then creat a small dataset of 100-200 datapoints. The dataset should have one categorical predictor variable with two levels (groups) and a numeric outcome variable. Each group's data should be generated randomly from a normal distribution with a different mean and the same standard deviation. Notice that because you're simulating the data, you know that there is a true population difference, and that you can make it and the variance in your population as big or as small as you like.

Then, plot your simulated data and run a linear regression. The regression will have one categorical predictor.

please send me the R script that you used

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

Calculus Early Transcendentals

Authors: William L. Briggs, Lyle Cochran, Bernard Gillett

2nd edition

321954428, 321954424, 978-0321947345

More Books

Students also viewed these Mathematics questions

Question

In Problem indicate true (T) or false (F). 5x + 7x = (5 + 7)x

Answered: 1 week ago