Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started