Questions tagged [sas]
SAS is a statistical software package. Use this tag for any on-topic question that (a) involves SAS either as a critical part of the question or expected answer, & (b) is not just about how to use SAS.
68
questions
7
votes
1
answer
5k
views
Difference in output between SAS's proc genmod and R's glm
I'm trying to replicate a model fitted in SAS in R but the fit I'm getting gives me slightly different coefficients and standard errors.
Data:
...
156
votes
25
answers
131k
views
R vs SAS, why is SAS preferred by private companies?
I learned R but it seems that companies are much more interested in SAS experience. What are the advantages of SAS over R?
17
votes
2
answers
12k
views
Conflicting results of Type III sum of squares in ANOVA in SAS and R
I'm analyzing data from an unbalanced factorial experiment both with SAS and R. Both SAS and ...
17
votes
2
answers
10k
views
Formula for autocorrelation in R vs. Excel
I am trying to figure out how R computes lag-k autocorrelation (apparently, it is the same formula used by Minitab and SAS), so that I can compare it to using Excel's CORREL function applied to the ...
13
votes
2
answers
490
views
Beyond AR(1) as a covariance structure for mixed models with repeated measures
I have been reading about alternatives to assuming an AR(1) covariance structure for mixed models with repeated measures (in time). In particular I have heard about Toeplitz and Ante-dependence ...
12
votes
1
answer
2k
views
Which is the best method for network meta-analysis?
There are now several different approaches to perform a network meta-analysis or mixed treatment comparison.
The most commonly used and accessible ones are probably the following:
in a Bayesian ...
11
votes
2
answers
3k
views
11
votes
2
answers
11k
views
What exactly is the Box-Jenkins method for ARIMA processes?
The Wikipedia page says that Box-Jenkins is a method of fitting an ARIMA model to a time series. Now, if I want to fit an ARIMA model to a time series, I will open up SAS, call ...
14
votes
1
answer
13k
views
Differences between PROC Mixed and lme / lmer in R - degrees of freedom
Note : this question is a repost, as my previous question had to be deleted for legal reasons.
While comparing PROC MIXED from SAS with the function lme from the <...
10
votes
3
answers
10k
views
Can I use a variable which has a non-linear relationship to the dependent variable in logistic regression?
Let's say I am building a logistic regression model where the dependent variable is binary and can take the values $0$ or $1$. Let the independent variables be $x_1, x_2, ..., x_m$ - there are $m$ ...
9
votes
2
answers
10k
views
Non-parametric for two-way ANOVA (3x3)
My dependent variable is continuous, non-normal (skewed left according to Shapiro-Wilk test). I have two independent variables (treatment group by colour, food type). There are 3 levels within each ...
14
votes
2
answers
7k
views
Why does SAS PROC GLIMMIX give me VERY different random slopes than glmer (lme4) for a binomial glmm
I am a user more familiar with R, and have been trying to estimate random slopes (selection coefficients) for about 35 individuals over 5 years for four habitat variables. The response variable is ...
12
votes
3
answers
1k
views
Using computer simulations to better understand statistical concepts at the graduate level
Hi I'm taking a graduate course in Statistics and we've been covering Test statistics, and other concepts.
However, I am often able to apply the formulas and develop a sort-of intuition on how stuff ...
11
votes
1
answer
4k
views
Convert SAS NLMIXED code for zero-inflated gamma regression to R
I'm trying to run a zero-inflated regression for a continuous response variable in R. I'm aware of a gamlss implementation, but I'd really like to try out this algorithm by Dale McLerran that is ...
7
votes
1
answer
3k
views
Equivalent mixed models yielding different results in SAS
Below I show two equivalent ways to write a mixed model in R and SAS. The two R models as well as the two SAS models yield the same estimates of the random and fixed effects and the same standard ...