Logistic Regression with R
Logistic RegressionIt is used to predict the result of a categorical dependent variable based on one or more continuous or categorical independent variables. In other words, it is multiple regression...
View ArticleOversampling for Rare Event with R
OversamplingOversampling occurs when you have less than 10 events per independent variable in your logistic regression model. Suppose, there are 9900 non-events and 100 events in 10k cases. You need to...
View ArticlePropose your crush with R
This post is dedicated to all the R programming lovers.R Programming TipsHow to UseAsk your crush to run the following R program and see what you mean.paste(intToUtf8(acos(log(1))*180/pi-17),...
View ArticleSAS : Proc Freq Tutorial
This tutorial explains how to use PROC FREQ.Create a sample data setdata example1;input x y $ z;cards;6A606A702A1002B103B672C813C635C55;run;Example 1 : To check the distribution of a categorical...
View ArticleSAS : Call Execute Made Easy
This tutorial explains how to use data step to interact with the SAS macro facility.Example 1Suppose you have two data sets named "temp" and "temp2". You are asked to form a group based on the logical...
View ArticleRun SQL Queries in R
This tutorial explains how to run sql queries in R with sqldf package.Run SQL query in RInstall and Load Packageinstall.packages("sqldf")library(sqldf)Create sample datadt <- data.frame( ID =...
View ArticleExcel : Change Chart from Count to Percent Using Options Button
This tutorial explains how to change chart from count to percent using Options Button.Options ButtonLike drop down, the Option Button form Control allows the selection of a single item from a list of...
View ArticleExcel : Interactive Chart Using Check Boxes
This tutorial explains how to create interactive chart with check boxes in Excel.Check BoxThe Check Box form Control allows the selection of multiple items from a list of items. When one item is...
View ArticleExcel : Create Interactive Chart with List Box
This tutorial explains how to create interactive chart with List Box.Interactive Chart with List BoxSteps1. Prepare Data for Count and PercentCount and Percent Data2. Create List BoxInsert List Box3....
View ArticleExcel : Interactive Up Down Arrows
This tutorial explains how to create interactive up down arrows with excel.Style 1 :Interactive Up Down Arrow1. Enter CHAR(199) and change the font to "Wingdings 3", you will see Up arrow,2. Enter...
View ArticleSAS : Random Sampling with PROC SQL
This tutorial explains how to get random sample with PROC SQL.Random Sampling with PROC SQLThe RANUNI Function performs random sampling and OUTOBS restricts row processing.proc sql outobs = 10;create...
View ArticleSAS : Power of PROC FORMAT
This tutorial explains the uses of PROC FORMAT in the most common data manipulation tasks.Sample DataData Source : sashelp.carsSample DataExample 1 :Suppose you are asked to group MSRP variable based...
View ArticleSAS : COALESCE Function
The COALESCE function is used to select the first non-missing value in a list of variables.SAS : COALESCE FunctionSample Datadata temp;input ID x1-x4;cards;1 . 89 85 .2 79 . 74 .3 80 82 86...
View ArticleListBox ActiveX Control Explained
This tutorial explains how to use ListBox ActiveX Control.Simple ListBox (Without VBA)Step I : Go to Developer TabStep II : Click on Insert Button and then select ListBox under ActiveX Controls (see...
View ArticleNODUPKEY with PROC SQL
This tutorial explains how to remove duplicates by a column but returns all the columns.NODUPKEY Feature with PROC SQLdata readin;input ID Name $ Score;cards;1 David 451 David 742 Sam...
View ArticleFuzzy Matching with SAS
This tutorial explains how to perform fuzzy matching (string matching) with SAS.Fuzzy Matching with SASSample DatasetsData temp ;Input company $30.;cards;VanucoverRelianceTataTata Motors;run;data...
View ArticlePattern Matching with SAS
This tutorial explains how to use regular expression language (pattern matching) with SAS.Sample Datadata x;infile datalines truncover;input name $100.;datalines;DeepanshuHow are you,...
View ArticleSAS Macro : Run SAS Procedure on Multiple Datasets
This tutorial explains how to run SAS procedures on multiple datasets.Dictionary.Columns vs. Dictionary.TablesDictionary.ColumnsIt returns information about the columns in one or more data sets. It is...
View ArticleBuilding SAS Macro Library
This tutorial explains how to store macros in a location and call them from the location.3 Types of Macro Library% IncludeAutocall Macro FacilityStored Compiled MacroI. % INCLUDEStore macros in a...
View ArticleHow Data Step and PROC SQL Works
This tutorial explains the steps to process data in SAS.How Data Step WorksThe processing of data is in 2 steps :1. Compilation PhaseStep I : Syntax CheckingSAS scans each statement in the DATA step...
View Article