Hausman statistic cannot be calculated
Hi folks, I tried running a panel procedure (RANTWO vcomp=fb), but the log shows the following error message: "Hausman statistic cannot be calculated because different variables were dropped in the...
View ArticleProc transpose help please
Hi I have a patient data which is completely in Rows. I am to transpose the data. the data is somthing like this. please see the attached file. I wrote a code which is as follows. Code: proc transpose...
View ArticleNeed help in understanding the output of SAS code!
Hi, I help help in understanding the o/p of the SAS tabulate code: Example Here again are the boat data containing the name of each boat, its home port, whether it is a sailing or power vessel, the...
View ArticleVAR Granger Causality using Proc Varmax
Hi, I am trying to do VAR Granger Causality using Proc Varmax by the below code: /*--- Causality Testing ---*/ proc varmax data=grunfeld; model y1-y3 = x1 x2 / p=1 noprint; causal group1=(x1)...
View ArticleSAS operations research
It appears to me that SAS stats, SAS ETS (time series), and SAS QC (quality models) does not run operations research such as queing models, markov chaings, decision trees etc. I wondered if anyone can...
View ArticleARIMA and non-stationary ts
Hello everyone! Can somebody suggests me, what you are doing in case that you have data table with 2 variables - date and for example number of something (500 days) and you want to predict and forecast...
View ArticleHow to convert character datetime to numeric datetime?
I have a file in Excel that I use to import the data into SAS. The format of the data in the Excel is this: 28-05-2014 10:21:20 27-05-2014 14:22:26 27-05-2014 11:36:33 27-05-2014 17:14:55 27-05-2014...
View ArticleNeed help finding logic or coding errors
Hi, I'm in urgent need of some help troubleshooting this code for any errors or problems? Any assistance would be greatly appreciated! Thanks. SAS EXAMPLE TO TROUBLESHOOT This code uses SAS to select...
View ArticleSAS versus R
Quote: In study of the statistical packages, simulation from probability distributions is one of the important aspects. This paper is based on simulation study from Bernoulli distribution conducted by...
View ArticleDunn index and Davies-Bouldin index in Clustering
Does SAS calculate Dunn Index or Davies-Bouldin Index? It relates to validation of different cluster algorithms... Thanks for any suggestions.
View ArticleMerging data with SAS
Hello, I would like to merge two data tables : ID (unique) DATE COLOR STATE TYPE 165198165 09/20/1999 Blue DC SMALL 156189650 02/12/2003 Red Florida SMALL 100068741 12/01/2011 Red DC AVERAGE 210654100...
View ArticleBiased sampling in logistic regression
Hi, I have 100,000 observations and my dependent variable is binary. I need to run logistic regression but my bad rate is too low(less than 1%). If i build my model based on such low bads, model could...
View ArticleReverse optimization model - possible in proc optmodel?
Hi gang, tough question here that I cannot figure out... I have a sample of n0 subjects, m0 are events, n0-m0 are non events. I have three continuous predictors, X1, X2, and X3, for the event. Is it...
View ArticleSAS non-parametric results.
I have spent a lot of time looking, but I can not find this. When SAS produces p values for non-parametric test (Kruscal Wallis, Wilcoxon, Friedman etc) is it reporting one or two tailed results? My...
View ArticleTest statement in Proc Logistic
I'm not very familiar with the test statement in proc logistic, it seems straight forward but I keep receiving an error message. For example, for the test statement Code: proc logistic data=data; class...
View ArticleSAS help regarding putting observation Together. Please help
Here is the raw data: name var1 var2 var3 startdate enddate jack x y z 01jan2012 01jan2012 jack x y z 02jan2012 02jan2012 jack x y z 03jan2012 03jan2012 jack x y z 04jan2012 04jan2012 jack x y z...
View ArticleProc Logistic Contrasts with Interaction
I'm having difficulty figuring out the appropriate contrasts including an interaction term. In my model: Code: proc logistic data=data; class var1 var2; y = var1 var2 var1*var2 / link=glogit; I would...
View ArticleMerging three SAS table
Hello, I would like to merge 3 sas tables in a "special" way. The first table looks like this : Class Color Size Coef1 C1 Blue Big 0.0476 C1 Red Big 0.123 C1 Blue Small 0.0121 ... C3 Red Big 0.0523 C3...
View ArticleBinary Logistic Regression Diagnostics
Could anyone please refer me to a web page or text on doing logistic regression diagnostics in SAS? I cant say I am expert in logistic regression, found only the link below but not sure if it covers...
View ArticleNeed ideas to modernize using SAS my data cleaning approach
Hi, I have been given various large datasets that require a lot of time and effort cleaning incorrect codes (from a scanner that did not read the data correctly). I have completed the first dataset and...
View Article