Negative binomial model's SAS syntax.
Hi, I am trying to run the negative binomial model for the following model. ln(di) = ln(ni) + β00 + β10 yeari + ei, i = 1979, , 1996 where, d = crude death rate, n = person-years at risk and years is...
View ArticleSAS input to be used for chi squared goodness of fit
i have a data set I need to enter into SAS so I can perform a chi squared goodness-of-fit. The categories being used are <=12.9, >12.9 and <=13.9, >13.9 and <=14.9, and >14.9 I've...
View ArticleHelp with datepart
Hi, Please help me with this.. I have a column in my data TYPE: Number FORMAT: datetime20. Im using using proc sql and need to remove the timestamp and just have the dates. instead of...
View ArticleHow to edit this forest plot code to accommodate a non-log scale?
I want to create a version of the forest plot here: http://support.sas.com/kb/42/867.html Unfortunately, the scale isn't useful for the values I want to include (Hedge's g instead of odds ratio), which...
View ArticleHP Linear Regression
This is apparently different software rather than a different method. Has anyone worked with it.
View ArticleHow to create a table of values
hi I am looking at summarizing the attached data set (book1) in SAS from my original proc sql statement. I want to adapt this with a summary of existing actions in the statement below with a some...
View ArticleInput NHAMCS data, 2003-2009
Hello all, I am wondering if anyone knows how to input NHAMCS data into SAS. For a project, I am to reproduce Table 1 from the following article: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3338876/ I...
View ArticleMerging files where errors exist in Log file
hi, I am executing a specific set of actions as follows from the attached desktop zip files ; - read in the file Adobe may 1) I am looking at merging the Adobe may file with the...
View ArticleSAS code to create game scheduler for 8 players
I'm trying to set up a pseudo tournament competition thing. There are 8 players and at any given time 4 of the 8 players can participate. I would like everyone to play 12 games and everyone needs to...
View ArticleInterpreting proc genmod output
I have hospitalization data (nsum) over a 17 year period for 3 different study areas (variables period and area). I have the log of the population as the offset. So, I think I need to be going with...
View ArticleCreate excel sheet (from SAS) with Data Validation Options
Hopefully this makes sense: So in excel you can use the Data Validation tool to create drop down lists to essentially force a user to have to enter a specific value in a cell. I'm wondering if that can...
View ArticleRepeated Measures Nested Model in PROC Mixed?
Hello, I'm looking for help analyzing data. Here's the experimental setup: 12 experimental plots, divided into 3 blocks. Each block is a factorial combination of two treatments (precipitation,...
View ArticlePoissonness plot
This is essentially the equivalent of a QQ plot for Poisson distribution, which can not use QQ plots since the distribution is of discrete data. Michael Friendly tells you how to use these and gives...
View Articleinterpretation for %DFTEST results
Hello, I need to interpret the results of this macro %DFTEST: proc print data=sashelp.air;run; %dftest(sashelp.air, air, ar=1, dif=(1), trend=1, outstat=delete); proc print data=delete; run; I created...
View ArticleSAS proceedings
This is a gold mine both for stats, and other areas, and coding. I have only gone to the 2010 and 2014 sites and I have five pages of links that I found useful. This is the main site....
View ArticleGenerating distributions for all variables in a data set.
This is fairly simple, but I figured others might find this of value. https://communities.sas.com/thread/64329
View ArticleNegative binomial model - saturated?
I am trying to run a model for cases (n) to see if area, period, and area*period are significant predictors. I am really only interested in the area*period component because the two variables on their...
View ArticleFedSQL
I have never heard of this before, but it has some amazing functions [for instance one function calculates the p value associated with a t distribution very useful when running t test]. Apparently this...
View ArticleCase sensitivity
I spent several hours today trying to figure out why code I was running was not working. I got no error messages, but there were no results from a table that had thousands of observations. Then, more...
View ArticleHow to calculate Log Hazard Ratio in SAS
Code: proc phreg data = analysis ; class c diabetes /descending; model days*ind(0) = c diabetes id/ rl ; id= c *diabetes; hazardratio id; run; I am trying to run a simple Cox Regression in SAS. I cant...
View Article