R Programming Questions and Answers – Linear Regression – 1

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Linear Regression – 1”.

1. Which of the following convert a matrix of phi coefficients to polychoric correlations?
a) poly()
b) qline()
c) phi2poly
d) multi.plot()
View Answer

Answer: c
Explanation: In statistics, polychoric correlation is a technique for estimating the correlation between two theorized normally distributed continuous latent variables, from two observed ordinal variables.

2. Which of the following is used to plot multiple histograms?
a) multi.plot()
b) multi.hist
c) xyplot.multi()
d) poly()
View Answer

Answer: b
Explanation: A histogram is a graphical representation of the distribution of numerical data.

3. Which of the following count the number of good cases when doing pairwise analysis?
a) count.pairwise
b) count() +
c) anova.para()
d) count.poly()
View Answer

Answer: a
Explanation: Pairwise comparison generally is any process of comparing entities in pairs to judge which of each entity is preferred.

advertisement
advertisement

4. Which of the following gives the summary of values likes mean etc?
a) mean
b) sd
c) describe
d) lm
View Answer

Answer: c
Explanation: Describe give means, sd, skew, n, and se.

5. The purpose of correct.cor is to correct _________ in values.
a) difference
b) reliability
c) error
d) similar
View Answer

Answer: b
Explanation: Correlation matrix and a vector of reliabilities is given to correct reliability.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. What plot(s) are used to view the linear regression?
a) Scatterplot
b) Box plot
c) Density plot
d) Scatterplot, Boxplot, Density plot
View Answer

Answer: d
Explanation: Each plot has its own importance of highlighting a specific feature. Scatter plot is used to visualise the relationship between the variables, Box plot is used to spot the outliers which effect line of best fit.

7. Common Metrics which are used to select linear model are ____________
a)

    R-Squared	Lower the better
    F-Statistic	Higher the better
advertisement

b)

    R-Squared	Lower the better
    F-Statistic	Lower the better

c)

    R-Squared	Higher the better
    F-Statistic	Higher the better
advertisement

d)

    R-Squared	Higher the better
    F-Statistic	Lower the better
View Answer
Answer: c
Explanation: For choosing linear regression model it is always advised to have more R-squared and lower F-Statistic. It ensures the best fit for the given data.
 
 

8. In lm(response ~ terms), terms specification of the form “first*second” is same as __________
a) first+second
b) first:second
c) first+second+first:second
d) first:second+second:first
View Answer

Answer: c
Explanation: A terms specification of the form “first + second” indicates all the terms in first together with all the terms in second with duplicates removed.

Sanfoundry Global Education & Learning Series – R Programming Language.

Here’s the list of Best Books in R Programming Language.

To practice all areas of R Programming Language, Here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.