“Give me the Examples or Scenario where we can use Linear Regression” It may seems a easy question but nevertheless it is always asked in Data science related interviews . My suggestion to you is always be prepared with situation where you will come face to face this question. I will write some easy example […]

## String Functions in SAS and Python

I always believe SAS and Python can make a great team together for Data Scientists. So Why Now we study them together. In this Post we will discuss various String functions in SAS and Python. String Functions in Python 3 Hope you must have gone through my previous post “Python Programming- Strings explained“. len(): returns […]

## Matrix in R- sourced from (Datacamp and R Programming for Data Science Book)

Matrix is an important data structure in R – Matrices are vectors with a dimension attribute or extension of Vecotrs. The dimension attribute is itself an integer vector of length 2 (number of rows, number of columns). m <- 1:10 dim(m) <- c(2, 5) m Output:- [,1] [,2] [,3] [,4] [,5] [1,] 1 3 5 […]

## Base SAS and SAS Programmer Interview Questions and Tips

Base SAS and SAS Programmer Interview Questions and Tips-Top SAS Interview Questions & Answers 1.Difference between do while and do until 2.Proc Report Vs Proc Print 3.Proc Append 4.SAS Formats Vs SAS Informats 5.Special input delimiters 6.Default statistics Displayed for Proc Means 7.Proc Means Vs Proc Freq Vs Proc Univariate 8.Compress data set using system options or data […]

## SAS Proc Report- How to assign Observation No or Serial No

You could do it while building your Data or in Proc Report. Let us see how. Compute block inside Proc Report is meant for moulding your data as per your requirement. So here is Sample code:- ods pdf file=”/home/lochanrajeev20130/demo1.pdf” ; proc report data=newbaseball; column obs League Name nAtBat (Salary Position ) ; define League/ group […]

## Types in Python Explained- Built-in Data types

Next chapter to ‘My First Python Program and Introduction to Jupyter Notebooks’ is ‘Types in Python’. I am following The course in “Python For Data Science” at cognitiveclass.ai and these Posts are way of me documenting what i have learnt. Built-in Data types Python Programming/Data Types – Wikibooks is one good read that you must not miss. You can also […]

## Base SAS Certification Question & Explanation:-librefs

Which of the following librefs is valid? a. halluagullua b. hellhe/01 c. mun_01 d. 3_or_v

## How to test Normality with Proc univariate SAS procedure?

Proc univariate is a very important SAS procedure which not only gives descriptive statistics for Continuous variable but also provides detailed distribution info and graphs. Like you want to check assumptions of Normality for One Sample t-test in SAS, then you can use proc univariate with NORMAL option.

## Base SAS Certification Question- Data Error ,Syntax Error

The following SAS program is submitted: data work.totalsales (keep = monthsales{12} ); set work.monthlysales (keep = year product sales); array monthsales {12} ; do i=1 to 12; monthsales{i} = sales; end; run; The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations. Which one […]

## What is standard error of the mean?

Standard error is a statistic that measures the variability of your estimate. It is the measure of how much variability of sample means is around population mean.