Sas routines guide SAS ROUTINES Contents Label variable Report De ?ne Reading from text ?le Reading from csv ?le Capturing output in ?le Creating an output data set How to identify output objects Using object label to create an output data set Turn the li
SAS ROUTINES Contents Label variable Report De ?ne Reading from text ?le Reading from csv ?le Capturing output in ?le Creating an output data set How to identify output objects Using object label to create an output data set Turn the listing output of Output to an HTML ?le con ?dence interval of mean Column input formatted input Formatting in proc report- Proc report Across variable to group variable horizontally Computed variable Summary report Viewing contents of dataset printing portion of dataset Print by create new library creating and adding data to dataset importing csv ?le importing excel ?le IMPORTING TEXT FILE COPYING DATASET ADDING NEW VARIABLES AND CREATING DATASET DROP AND KEEP VARIABLES IN NEW DATASET PRINTING NO OBSERVATION NUMBER SUBSTRING C OTHER STRING FUNCTIONS DATE FUNCTION PRINTING VARIABLES IN DATASET SORT REMOVING DUPLICATE REMOVE DUPLICATE BASED ON KEY MOVE DUPLICATES INTO NEW DATASET PLOT Median in proc sql PROC SQL Proc sql case MERGING TWO DATASETS SAMPLING PRINTING VERTICAL HEADING MEAN CALCULATION Moving means data into output ?le Merging two data together QUANTILES TO REMOVE NA VALUES TO NUMERICAL CREATE FREQUENCY TABLE create two variable categorical frequency table Weight statement order three variable frequency Correlation Regression logistic regression test stationarity create a diferentiated time series create ACF and PACF Plots to calculate the ESACF and SCAN function values forecast using ARIMA advanced mean concepts Basic mean C Selecting Analysis Variables Analyses to be Performed by PROC MEANS and Rounding of Results Selecting Other Analyses Step Analysis with CLASS variables Step Don ? t Miss the Missings Survey means - How to Estimate a Ratio of Means using SAS Mean and ratios SAS QUESTIONS C Label variable Label varname ? label name ? Report Proc report data dataset name Column age weight ?? prints age and wieight in columns De ?ne Assign formats to variables Specify column headings and width Proc report data dataset De ?ne variable Run Reading from text ?le data Sample in ?le 'c books statistics by example delim txt' length Gender input ID Age Gender run The LENGTH statement tells SAS that the variable Gender is character the dollar sign indicates this and that you want to store Gender in byte the indicates this The INPUT statement lists the variable names in the same order as the values in the text ?le Because you already told SAS that Gender is a character variable the dollar sign following the name Gender on the INPUT statement is not necessary If you had not included a LENGTH statement the Cdollar sign following Gender on the INPUT statement would have been necessary SAS assumes variables are numeric unless you tell it otherwise Reading from csv ?le data Sample in ?le 'c books statistics by example comma csv' dsd length Gender input ID Age Gender run The DSD option speci ?es that two consecutive commas represent a missing value and that the default delimiter is a comma Here is the modi ?ed program Capturing output in ?le Ods listing Ods
Documents similaires
-
80
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Jul 01, 2022
- Catégorie Geography / Geogra...
- Langue French
- Taille du fichier 110.8kB