SAS usage and programming. SAS/Base, SAS/Stat, proc sql, SAS macro...
Since SAS isn't as reliant on UDFs as much as R is, I thought a thread on tips/useful gems hidden in SAS documentation/stuff you learned would be...
Hello, I am beginner with statistics and I need some help for my data analysis. In my research I am trying to find an impact of colors on websites...
H all need some help in this if I have a gplot with age on the X axis that shows 1,2, 3 how do i change it to say 18-20, 21-23, and 24-25 So i...
Hi, I imported an excel file into SAS 9.3. One of my variables is INCOME. Running a proc freq, my income is listed out of order, according to the...
Hi all, I am very new to SAS, but found it's really a amazing tool. Now i have a very basic question/problem about the readiness & installation...
Hi everyone, I have a numeric variable, lets call it 'times'. I have a macro variable 'myTime' defined to be some value, lets say 200. I would...
Hi, I'm fairly new to SAS programming, so not sure if this can be done. I have a set of data and I need to extract them under certain conditions....
I'm kind of curious as to specific differences in the all of the many time series procedures in SAS. I know, for instance, there is PROC ARIMA, PROC...
Hello. Please take a look at the proc print screen grab. I'm posting because I have a homework assignment that's asking me to use arrays and...
Hi, I am a beginner who is trying to generate the a dataset from the following input file but the input file has space between the two variables...
Hi, i'm trying to run the same OLS regresion in SAS and Matlab but they gave me different answers. The regression is: R_t = β_0 + B*F_t + β_L*L_t...
I assume this is the same whether you do logistic or linear regression. Sometimes you want to constrain a regression parameter to be a constant I now...
I used sas mixed procedure, but if I change the reference group, the result wont consistent with each other. ...
Hi, I have data that is structured like the following: location team score away ny 100 home la 80...
I know "proc means" will give me the mean and standard deviation of a set of data. Is there any code that can remove outliers from a set of data?...
Hi All need your help---if I have a date variable called dateV in my data that looks like this 18APR13:00:13:23 April 18th at 1pm 13 mins and 23...
Dear All, I have to analyze a small data set. 6 variables and 20 observation. I clustered 20 observation into 3 groups and I used Proc Discrim and...
Hi, I am fairly new to SAS and I am trying to see how I can write a code to solve the following: This is a snapshot of my data:...
I am running a multivariate LR and have categorical age variable with 6 categories (ref=0). My regression runs fine and everything seems to be in...
wondering if this was possible. i have a database that has identifies all the tires on many different vehicles (from cars to 18 wheelers). im trying...
Hi, I am interested in using survival analysis methods on seed germination data. I have just started reading Allison's Survival analysis in SAS. ...
Hello Guys, I work for a casino and have been recently tasked with segmenting our database for time player or money player. A ideal time player is...
Hello All, I need some help running a path analysis in proc calis. My ultimate goal is to assess which explanatory variables have direct and...
hey guys... I have a question with this code. Why do I get an error for Min/Max but Sum works fine? and How do I fix it? I'm grouping the...
My company is struggling to find enough qualified candidates to build out a full financial analytics reporting team. We need at least 10 more Credit...
Hello, I have a question about editing my dataset in SAS. I have several patients who have repeated measurements over time, like this: ...
Hi, I've got a data set with among other things the variables for gender (M/F, i.e. 0 and 1) and for voting (yes/no, i.e. 0 and 1). I now need a...
Hello all: I've been doing some reading into Markov Decision Processes and am curious if there is a SAS procedure capable of using this method? ...
THere is a way of coding PROC LOGISTIC that goes MODEL Event/Trials=... This uses special variables refering to how many total cases there are...
Anyone know how to do this in SAS? Ideally outside ANOVA (since I use SPSS to do ANOVA). I am looking for ways to plot the interaction between...
I understand the difference between these, but I had a question. It appears to me that for the parameters themself SAS compares each dummy (aka...
I am having problems using these - not sure why. My var Area has six values Area 1 Area 2 Area 3 Area 4 Area 5 Area 6. Area 2 is the reference. I am...
I am trying to plot the distribution of scores of a continuous variable for 4 groups on one plot, and have found the best visualization for what I am...
The UNIT command (shown below) is supposed to show the change in the logit for a change in a certain number of units in an interval predictor (the...
I normally run statistics through a GUI in Enterprise Guide (EG). It uses various macros. For whatever reason its ordered logistic regression never...
I am not sure if this is a SAS question or a statistics question. When you specify an interaction between a categorical variable and either...
************************************************************************************************************************; * SAS MACRO CODE FOR...
Hello all: This is just an easy example (because my actual scenario is a little more complicated). My eventual goal is to output to excel via the...
I have a .sas file with format codes. Is it possible to call the formats using an option fmtsearch option from another sas code, or do I have to copy...
Any suggestion (in the context of logistic regression) to generate plots to look at interaction? I am interested in this in both the context of...
I am doing multivariate logistic regression with CGR and OBST as dependent varaibles. I used the syntax below. But I got the message that says that...
Hi, I want to merge two data sets in the usual way, by a certain criterion, matching only the observations (by id) that are in both data sets. What...
I am trying to get the odds ratios for sex within each of the CGR categories. I want to get 16 odds ratios for sex within each of the 16 CGR...
Hi I am a learner who is trying to build my first stats model which is aiming at winning chance prediction for business quotes. The stats model I...
Hello all: I have a question regarding using a do loop within a macro. Let's say I have the following code: %macro plot_loop(); %do i=1...
I am finding a gap in continuous data that is throwing a wrench in a bivariate VAR. I need a way in SAS to sum the weekend data of one variable...
This macro will work when I state a single number in %reg(), but when I try to add additional numbers, for example %reg(#,#,#...) it will not run and...
I'm new to this forum so my apologies if this is done incorrectly. Here is my problem- I have a SAS dataset with few columns and many rows and...
I have a dataset with 8200 observations and 33 questions. When any of the values for questions q1-q33 equals 9 (numeric), I want to set it to...
Many discussions of logistic regression state that having the wrong variables or the wrong functional form will weaken the model and this will be...
How can I build a time variable into my model? I am building a model in SAS and I want to use time of day as a way to predict Y. "Are people more...
Hello, If I am trying to explain Y using the day of the week (Monday, Tuesday, Wednesday, etc) in SAS. can I simply convert each day to a...
Hi All, I have variables- yes or no and I need to do repeated measures at 3 timepoints. What is the appropriate program in SAS? Any ideas please?...
Hi! I'm in the process of matching data and I've run up against a bit of an issue. In my dataset, I have several control subject ids nested within...
I need to subtotal some of my rows. For example, multipe rows have the same contract number and material code. I need to add the inspection...
Hi there, I am trying to see if there is any difference in family size between 2 communities. I thought one way ANOVA would be good. However, I...
Hi there, I am working on socioeconomic variables with SAS. I have set of variables like age, community, marital status, education level etc. I...
Hello all: I have a set of a data that looks something like this: data test; input ID Group; cards; 1 1 2 3 3 1
Hello All: I have a 2 x 4 factorial plus a control (9 treatments) in a RCBD. The first factor is qualitative (product application frequency) and...
Hello all: I need help using the ANOVA technique to arrive at an appropriate form of a multiple regression equation between the response (disease...
I am analysing multiple variables var1 - var10 which have labels. They are named as such so that running a do loop is easy in a Macro. When running...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules
Advertise on Talk Stats