0% found this document useful (0 votes)
10 views34 pages

R Scripts for Data Analysis Techniques

Uploaded by

john.will7255
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views34 pages

R Scripts for Data Analysis Techniques

Uploaded by

john.will7255
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

INDEX

[Link]. PRACTICAL NAME DATE PAGE NO. REMARKS

Write an R script, to create R objects for


calculator application and save in a specified
1 location in disk

Write an R script to find basic descriptive


statistics using summary, str, quartile function on
2 sample datasets.

Write an R script to find subset of dataset by


using subset (), aggregate () functions on sample
3 dataset.

Write an R script for Reading different types of


data sets (.txt, .csv) from web and disk and
4 writing in file in specific disk location.

Write an R script for Reading Excel data sheet and


XML dataset..
5

Find the data distributions using box and scatter


plot of sample dataset.
6 a. Find the outliers using plot.
b. Plot the histogram, bar chart and pie chart on
same data.
[Link]. PRACTICAL NAME DATE PAGE NO. REMARKS

How to find a correlation matrix and plot the


correlation on sample data set.
a. Plot the correlation plot on dataset and
7 visualize giving an overview of relationships
among data
b. Analysis of covariance: variance (ANOVA),
if data have categorical variables

Import a data from web storage. Name the dataset


and now do Logistic Regression to find out
relation between variables that are affecting the
8 admission of a student in a institute based on his
or her GRE score, GPA obtained and rank of the
student. Also check if the model is fit or not.
require (foreign), require (MASS).

Apply multiple regressions if data have a


9 continuous independent variable. Apply on
above dataset (in Que 8).

Apply regression Model techniques to predict the


10 data on above dataset (in Que 8).
R LAB Aryan Rana
2822339
Practical No. 1

AIM: Write an R script, to create R objects for calculator application and save in a specified location in
disk

CODE :-

1
R LAB Aryan Rana
2822339

OUTPUT:-

2
R LAB Aryan Rana
2822339
Practical No. 2
AIM: Write an R script to find basic descriptive statistics using summary, str, quartile function on
sample datasets.

CODE:

3
R LAB Aryan Rana
2822339

OUTPUT:-

4
R LAB Aryan Rana
2822339

5
R LAB Aryan Rana
2822339
Practical No. 3

AIM: Write an R script to find subset of dataset by using subset (), aggregate () functions on sample
dataset.

CODE:

6
R LAB Aryan Rana
2822339

OUTPUT:-

7
R LAB Aryan Rana
2822339

8
R LAB Aryan Rana
2822339
Practical No.4

AIM: Write an R script for Reading different types of data sets (.txt, .csv) from web and disk and
writing in file in specific disk location.

CODE:

9
R LAB Aryan Rana
2822339

OUTPUT:-

10
R LAB Aryan Rana
2822339

11
R LAB Aryan Rana
2822339
Practical No. 5

AIM: Write an R script for Reading Excel data sheet and XML dataset..

CODE :

12
R LAB Aryan Rana
2822339
OUTPUT :-

13
R LAB Aryan Rana
2822339

14
R LAB Aryan Rana
2822339

Practical No. 6
AIM :- Find the data distributions using box and scatter plot of sample dataset.
a. Find the outliers using plot.
b. Plot the histogram, bar chart and pie chart on same data.

CODE :-

15
R LAB Aryan Rana
2822339

16
R LAB Aryan Rana
2822339
OUTPUT :-

17
R LAB Aryan Rana
2822339

18
R LAB Aryan Rana
2822339

19
R LAB Aryan Rana
2822339

20
R LAB Aryan Rana
2822339
Practical No. 7
AIM : How to find a correlation matrix and plot the correlation on sample data set.
a. Plot the correlation plot on dataset and visualize giving an overview of relationships
among data
b. Analysis of covariance: variance (ANOVA), if data have categorical variables

CODE:

21
R LAB Aryan Rana
2822339

OUTPUT :

22
R LAB Aryan Rana
2822339

23
R LAB Aryan Rana
2822339

24
R LAB Aryan Rana
2822339
Practical No. 8

AIM : Import a data from web storage. Name the dataset and now do Logistic Regression to find
out relation between variables that are affecting the admission of a student in a institute based on
his or her GRE score, GPA obtained and rank of the student. Also check the model is fit or not.
require (foreign), require(MASS).

CODE :

25
R LAB Aryan Rana
2822339

OUTPUT :

26
R LAB Aryan Rana
2822339

27
R LAB Aryan Rana
2822339

28
R LAB Aryan Rana
2822339
Practical No. 9

AIM : Apply multiple regressions, if data have a continuous independent variable. Apply on above
dataset (in Que 8).

CODE :

29
R LAB Aryan Rana
2822339

OUTPUT :

30
R LAB Aryan Rana
2822339
Practical No. 10

AIM : Apply regression Model techniques to predict the data on above dataset (in Que 8).

CODE :

31
R LAB Aryan Rana
2822339

OUTPUT :

32

You might also like