Questions tagged as 'sas'

2
answers

Does R have any similar commands to SAS IN?

Does R have some similar command to SAS IN? Here is an example in SAS code: IF variable1 IN (4,5,6,7) THEN variable2 = 1; That is, if variable1 assumes values from 4 to 7, variable2 is assigned a value of 1.     
asked by 12.01.2015 / 19:55
2
answers

SAS and R perform Merge differently

What is the difference between the way R and SAS execute the merge? The SAS Merge command returns 205546 rows, and the R returns 207208 rows. Here's an example. I'm working with the IBGE file available at: ftp: // ftp. ibge.gov.br/PNS/2013/...
asked by 26.01.2015 / 19:03
2
answers

Proc stands for basic SAS for R

Hello, I am a basic user of SAS and need to create a table in R, but I am well lost in R. The command given in SAS is DATA MEDIAS; SET TEMP; PROC MEANS N MEAN MIN MAX STD; VAR a1 a2 b1 b2 c1 c2 T R E; RUN; In sas it frees me this t...
asked by 02.02.2016 / 23:48
2
answers

ASCII reading files of the Demographic Census 2010

Does anyone know where to download the ASCII (.sas) files for reading the microdata of the 2010 IBGE Demographic Census? I know the Anthony Damico just keeps some files on his site (see below how to do the download), but I am looking for th...
asked by 28.09.2015 / 17:20
1
answer

Input of dates in SAS

Please try to enter dates in the input form of the SAS Enterprise Guide version 7.1, but in any case the result always comes out in numerical form, here is an example of the code: data work.family; infile datalines; input relation $ first_name...
asked by 16.06.2016 / 15:12
1
answer

How to use the scan for a numeric variable [SAS]

I have a table like this: List_ID 1 4 7 10 (In total there are 100 numbers) I want to call them for a macro I've created. I was trying to do it with Scan, but I read that it was only for text variables. It gave me that my variables were...
asked by 11.07.2015 / 02:00
0
answers

How to use SAS Enterprise Guide to work with complex samples?

I need to model data from the PNAD - IBGE, which uses a complex sampling plan. Is it possible to use the SAS Enterprise Guide in this modeling?     
asked by 11.12.2014 / 18:09
1
answer

Variable Length - SAS

I am making an if in SAS to declare the value that a variable will receive depending on the condition, however when I say that the variable will receive a string of size up to 3 it returns correctly but indicating that it will receive a string o...
asked by 29.08.2018 / 20:27
0
answers

I need to connect econometric software to Teradata databases

I'm looking for connection solutions, better than ODBC / JDBC, from some econometric software such as SAS, Matlab, STATA, ACL, EViews to my base on Teradata, including In-Database processing solutions.     
asked by 08.03.2018 / 17:20