Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ 1 ] Your Problem: delta.x Suppose n = 6 , then #delta.x a = b = n = delta. write the formula here _

[1] Your Problem: delta.x
Suppose n=6, then
#delta.x
a=
b=
n=
delta. write the
formula here_)
Constructing the Subintervals:
Indexing out elements from a vector:
R command: vectorname[i] where i= number and gives the ith position in the vector Y [2:7] will give you all components in vector Y, in the second, third, ... positions
Example: If x=c(9,8,7,6,5,4)
x[1]=9
x[1:5]=9,8,7,6,5
x[2:6]=8,7,6,5,4
Next: we need to repeat this
To do this we need to learn how to use a "for loop" in R>>
Explanation of R code: "for" loop:for loops let us repeat (loop) through the elements in a vector and run the same code on each element. We will illustrate with examples
Example 1: In this example: let j act as a variable and square it:
image text in transcribed

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions