Time or Money Gambler Segmentation
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 the one who comes in each gaming day plays for a fixed...
View ArticlePath Analysis- SAS PROC CALIS: Fitted correlation warning message
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 indirect effects on my response variable to gain a better...
View Articlehow to count observations and put them in groups
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 to figure out how many vehicles there are in the...
View ArticleP value not match OR CI
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 order except for this one variable. In the OR estimates...
View ArticleProc Discrim and interpretation
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 SAS output 3 functions. Below is the output; Linear...
View ArticleCreating a summary table
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: pid grade Disease 15 1 thrombocytopenia 1 2 arrhythmia 1 2 arrhythmia 3 1...
View ArticleStripping time stamps
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 sec. How do I reformat to get two variables hr and mins...
View Articlehow to combine rows of paired data into one row
Hi, I have data that is structured like the following: location team score away ny 100 home la 80 away chi 95 home det 85 But I would like to transform the pairs of data to be structured like this:...
View Articlea strange result looking for help:I changed the reference group, the result...
I used sas mixed procedure, but if I change the reference group, the result wont consistent with each other. https://dl.dropboxusercontent.com/u/58818440/1.pdf I just changed the reference group...
View ArticleInput file has space between two variables as well as inside variables...how...
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 as well as inside the variables. Input File Philip More...
View ArticleWhy do SAS and Matlab give me different answers for my OLS regression?
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 + e_t Where R_t is a 10X1 vector , F_t is a 4x1 vector,...
View ArticleSAS - Help creating a date variable using arrays and do-loops
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 do-loops to accomplish the following: 1) identify the date...
View Articlesetting condition for a range of variables
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. For example: If AA=1 and (B1=1 and B2=1 and ... Bn=1)...
View Articleclosest value into a macro variable
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 like to extract the closest value in 'times' to 'myTime'...
View ArticleA fundamental question about installing SAS
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 of SAS. My boss is considering the possibility to...
View ArticleLength of a numeric variable---already imported
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 first number, so for instance, here is an example of my...
View ArticleStandardized residuals logistic regression SAS
Allison says that (as of 9.3) SAS will generate standardized Pearson and Deviance residuals. Does anyone know the code to ask for that? Also the residuals show, for binary logistic regression, two...
View ArticlePlease help me with sas!!!!
CAN SOMEBODY PLEASE HELP ME WITH THIS TASK I am told to do the following on SAS: Create a plot of the function y=f(x)=log(x) Use a data step with a "do" loop to create the data (y and x) Create y and x...
View ArticleDecision Tree - What does the bold line mean?
I am using SAS Enterprise Miner. I'm not sure if it is the same as PC SAS but it should not be much different. When making a decision tree in SAS, you get one line that is bolded, why is this bolded...
View ArticleHelp with creating splines in SAS!?
So I have a dataset, and I've done the following... proc means noprint; by sex customer_id; var sleep_efficiency; id initial_bmi initial_age; output out=outmeans mean=mean_se Now, I have to do 1. use...
View Article