How to subset the extremly large dataset?
Dear all; I have a extremly large tick by tick dataset. I used the proc sql process as following: (proc sql noprint; select distinct clientid into :client1-:client60000 from largedataset; quit;) that...
View ArticleStandard errors for bar chart
Hi; I'm trying to create bar charts in SAS from proc surveyfreq output, with standard error bars attached. The code I have so far is as follows: proc surveyfreq data=ztemp2; table region*v1001/nofreq...
View ArticleSGPLOT vbar
Hi all: I'm using SGPLOT and the vbar option to print out a histogram. The values of the x-axis range from -14 to 18 (the column for the x-axis is numeric). I would only like even values to show up on...
View ArticleLag Function with dates
Hi I have a table with patients and their visit history. I created this table by combining list of potential patient table with list of patient that went to fracture clinic. Doctor wanted to know from...
View Articlewhat is wrong with my SAS codes?
I have been trying to have SAS calculate tolerance and VIF by using the following codes: proc logistic data=uis descending; model DFREE = AGE BECK IVHX NDRUGTX / tol vif; run; and I was given the...
View ArticleNeed Urgent Help constructing an Error Grid
Hello everyone! Am new to this forum so any help you guys can offer would be greatly appreciated. Basically, I am a very very new SAS user who is only really starting to get to grips with SAS (barely)!...
View ArticleAdjustment of colour and offset
Hey everyone, Just a quick question. Can anyone help me adjust the colour and the offset for the graph I've produced? Basically when you look at the graph, you can see 2 lines (ISO:2003 and ISO:2013)....
View ArticleLinear extrapolation
Dear who can help this out; I have state level socioeconomic data set from census, income, race ratio, marriage ratio, education level etc. It's in each 10 year period (1980, 1990, 2000). I want to...
View Articlenormal distribution for number of members by age
Hello , I am trying to find out the normal distribution of number of members against each age-group. I have use the sas code but I am not sure if its the correct one . data totalmembers; input year...
View ArticleProc surveyreg question
I have a quick question about proc surveyreg. I understand that proc survey reg is appropriate for complex survey data with strata and clusters. However, proc surveyreg appears to produce different...
View Article90th Percentile record
Hi I was wondering how do I get the 90th percentile record? I want to know which patient ID contains the 90th percentile. I don't have the code with me right now the one I use for 90th percentile but...
View ArticleRelearning SAS
Greetings Does anyone know how to use the 'set' or 'infile' statement using SAS on Demand for Professionals (SODP)? Since it utilizes Enterprise Guide (EG) 6.1, it is geared to new users of SAS wanting...
View ArticleSAS Logistic Regression - High Wald Chi square for a binary variable
I am working on an analytical task where I need to identify why a particular binary independent variable is having high Wald chi-square (approx. 10k) when compared to the other variables (approx in...
View Articlemultiple condition help in macros
Hello all, please help in below step. i have a scenario where user might want all the 3 variables or he may want on 2 or etc in the any way he wants. so, logic goes like this data x; set data y; where...
View ArticleFitting the model with SAS INSIGHT
Hy everyone :o I have a question about SAS insight. I'm trying to fit the gamma regression model, and I need Anscombe residuals. Since I can get them only in SAS insight, I've tried to fit the model...
View ArticleHelp with SAS GLIMMIX
I have an experimental dataset that contains 2 between-subjects variables (Variable A and Variable B) and 1 within-subjects variable (Variable C). All the three variables are categorical variables with...
View ArticleImport messy Text to SAS
Hi, I am trying to import text raw file to sas ( each data separated by space ). how can i clean up the date before import to sas ? is their any way in sas that i can remove string, unwanted space and...
View ArticleHelp***SAS - Fill missing value with the last non missing value variable
Hi, I wanted to fill missing value with the last non missing value variable. +----------+--------+-------+ | Variable | Level | Value | +----------+--------+-------+ | | men | 10 | |sexe | female | 20...
View ArticleHow to Merge Large Datasets That Uses Different Sampling Frame?
Hello All, I am new to this forum. I am trying merge large datasets that uses different sampling frames. How to go about doing so and how to ensure correct weighing of data during the merger? I would...
View ArticleSAS code for hot decker imputation
I am just learning about using the hot decker imputation method to impute values in cases where values are missing in survey. I want to impute values for demographic variables such as age, health...
View Article