Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use set.seed ( 1 2 3 4 ) ( but replace the 1 2 3 4 with any number you like ) choose the number
use set.seedbut replace the with any number you like
choose the number of observations you want to generate and assign this value to
the variable n choose n at least or larger
create a variable mu and assign your chosen mean to this value
create a variable sigma and assign your chosen standard deviation to this value
using the rnorm function and your values of n mu and sigma, assign your randomly
generate observations to a variable called obs
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