SAS Permutation Coding Problem
Hi, Noob here. I need an elegant solution to the following problem in SAS: The source dataset A contains N observations (= rows) of a single variable X, i.e. x1, x2, ..., xN. From it, I need to...
View ArticleDescriptive statistics on all cont. variables?
Hi guys, does anyone know if it is possible to display the descriptive statistics (n, nmiss, mean, stdev, min, 1%, Q1, median, Q3, 99%, and max) for all continuous variables in a dataset and output it...
View ArticleData Exploration Macro
I'm building a generic macro to put into SAS to run every time I get a new data set. It tests for a lot of things........mean,gini, number of unique values, variance, number of negative values.....a...
View ArticleSAS Beginner: Help me join 3 tables
I wrote a simple code to join three tables. I am not getting errors, but my code is not working. Here it is. What am I doing wrong? LIBNAME DTDB2CMS ODBC DSN=KSDADBP1 USER=DT22NCM PW=READ0nly...
View Articlelimit data in gplot with macro array
I have a horizontal dataset containing quarterly chargeoff data for various products. Within the dataset variables names are product specific(productA_bal, productA_chgoff, productA_net_chgoff,...
View ArticleHow to analyze only subjects with complete data
I have a dataset of 8960 subjects, 935 of which have complete data (no . in any of the categories). I'm trying to run a proc (proc reg), but how can I do it so that it only does it for these 935...
View ArticleStandardized Estimate vs. Exp(Estimate) in Logistic Regression
Hi guys, how do you interpret standardized estimate vs. exp(estimate) in logistic regression? Is it safe to say the closer to zero the standardized estimate, the less the effect on the probability of...
View ArticleSurvey Analysis in SAS - Help
I have a data set with pre and post scores for individuals following the completion of a program. The difference column is calculated so the range is -3 (most negative improvement) to 3 ( most positive...
View ArticleOdds Ratio Trend in Multivariate Logistic Regression
I am looking for how to conduct a trend test for the odds ratios for a categorical variable in a multivariate logistic model performed in SAS. So it would ideally generate a p-value for whether the...
View ArticleMultiple comparisons
Hi All, In my model I have trt*time interaction, which shows up as significant in the type 3 tests for fixed effects. However, in the Bonferroni multiple comparisons, none of the comparisons are...
View ArticleImporting Tab Delimited File
Hi, I am trying to import a very large tab delimited txt file into SAS, using proc import or infile on all of the data obviously takes a very long time. I would like to limit the files I import to...
View ArticleRename Sub categories
Hi All need some help on renaming subcategories. If i have a variable say Income and Income has three income levels A, B and C. An i want to rename A, B, C to $20, $30 and $40 -- how do i rename to...
View ArticleHelp on SAS output
help on SAS Output Hi everyone, new to the community and looking for some help. I'm currently in the process of writing my thesis and having some difficulties with interpretation of my regression...
View ArticleSAS Query:- Important and Urgent
I have a SAS dataset as:- ID Month Unit 101 Jan 10.4 101 Feb 10.3 102 Jan 23 102 Feb 43 I want to create two outputs by spreading the data for each store from Jan to Dec and replaceing the values by...
View ArticleWho knows how to estimate GARCH model using GMM?
I have tried a few weeks for estimation of GARCH model using GMM method. Could anyone give me a hand?
View ArticleKeyboard shortcuts?
Hi all, is there a keyboard shortcut that will run whatever command that my cursor is on? Currently if I want to run a line, I always do End, Shift+Home, F3. But I was wondering if there's a simpler...
View ArticleSAS Crash Have You Seen This Before?
I keep getting the SAS crash pictured below. The source dataset is quite large (802,923,150 rows, 7 columns, 44.8 GB compressed by SAS). I have tried (1) restarting SAS, (2) restarting the PC, (3)...
View ArticleUse of nway in proc means
Hello Friends, Can anyone please let me know what is the use of NWAY in PROC MEANS? I was googling for it but din't get a satisfactory answer. How the _TYPE_ keyword is related to it? Regards, Prasanna
View ArticleSAS code troubleshooting
proc sql; update AcSL set tt='Y' where tt=1 tt='N' where tt=0 sagety='Y' where sagety=1 sagety='N' where sagety=0 PPt='Y' where PPt=1 PPt='N' where PPt=0 compaete='Y' where compaete=1 compaete='N'...
View Article"IF" & "THEN" treated as files
315 if ficecode in ('009137' '9137' '209137' '109137' ________ 22 316 '009140' '9140' '9139' '009139' '002484' '2484') then ficecode='009137'; _ 22 200 ERROR: File WORK.IF.DATA does not exist. ERROR:...
View Article