The following question is related to statistics and done using R/Rstudio; Suppose I have a data set with 5 variables: 1 response (y) and rest are explanatory (x1,x2,x3,x4). Suppose for variable x2, I want to find out how far apart are consecutive levels of x2. from each each other. And you can assume that the levels are 0,20,40, 60 and there are 60+ observations in total. So, I would like to know how to write the code for getting such kind of computations.

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.6: Summarizing Categorical Data
Problem 25PPS
icon
Related questions
Question

I have seen this answer before DON'T COPY CHEGG 

The following question is related to statistics and done using
R/Rstudio;
Suppose I have a data set with 5 variables: 1 response (y) and rest are
explanatory (x1,x2,x3,x4). Suppose for variable x2, I want to find out
how far apart are consecutive levels of x2. from each each other. And
you can assume that the levels are 0,20,40, 60 and there are 60+
observations in total.
So, I would like to know how to write the code for getting such kind of
computations.
Transcribed Image Text:The following question is related to statistics and done using R/Rstudio; Suppose I have a data set with 5 variables: 1 response (y) and rest are explanatory (x1,x2,x3,x4). Suppose for variable x2, I want to find out how far apart are consecutive levels of x2. from each each other. And you can assume that the levels are 0,20,40, 60 and there are 60+ observations in total. So, I would like to know how to write the code for getting such kind of computations.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL