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.
720
questions
0
votes
0
answers
27
views
Inverse probability censoring weighting for selection bias using proc psmatch or any r package
I have a question that it has been proposed that if a treatment causing a censoring, and if there is an unmeasured confounder associated with censoring, as well as the outcome variables.
In this case, ...
0
votes
0
answers
12
views
When is Tukey post hoc test result identical to Games Howell post hoc test for Welch ANOVA?
In what situations is the Tukey post hoc test identical to the Games Howell post hoc test? I have an ANOVA analysis where HOV is violated and I have a statistically significant Welch ANOVA result. I ...
0
votes
0
answers
8
views
Recurrent event model - time to multiple medication discontinuations
I am using the following recurrent event model (counting process style input) to plot cumulative mean frequency of multiple medication initiations. Just like patients in the study can initiate ...
0
votes
0
answers
34
views
Understanding PRIOR option in SCORE statement for PROC LOGISTIC (SAS)
Say I have a binary response which I want to model with logistic regression on covariates $x$. Fitting a model with PROC LOGISTIC will fit MLE coefficients for the model
$$
\text{logit}(\pi) = \alpha +...
2
votes
1
answer
41
views
SAS log likelihood fit statistic from SCORE statement in PROC LOGISTIC [closed]
When using a SCORE statement in PROC LOGISTIC in SAS, I can get fit statistics with FITSTAT. My response variable is binary.
I want to get log likelihood, but looking at this documentation, I'm ...
0
votes
0
answers
26
views
Marginal structural model using PROC PHREG
I would like to fit a marginal structural model to account for treatment switching during follow-up.
I found a great paper on how to do this in R: https://www.sciencedirect.com/science/article/abs/pii/...
2
votes
0
answers
29
views
Choosing between Negative Binomial, Zero-Truncated NB, and NB with Arithmetically Altered Outcome (SAS)
I am modeling longitudinal Days of Pill Supply with predictors Number of Rx's and Patient Race. I was not able to use linear regression (proc reg or proc glm) because of heteroscedastic residuals, so ...
1
vote
0
answers
143
views
How does the "ZPH" option of PROC PHREG in SAS 9.4 works?
As I saw in SAS 9.4 documentation, the "ZPH" option in PROC PHREG statement requests diagnostics based on the weighted Schoenfeld residuals for checking ...
11
votes
1
answer
557
views
SAS and R produced different results for the same cox ph model on the same data
I have fitted a Cox ph model using both R 4.3.1 and SAS 9.4 with the same data. In SAS, I used Proc phreg, while coxph function ...
0
votes
0
answers
17
views
What is seasonality in PROC AUTOREG Durbin Watson Test in SAS?
I want to understand how seasonality for the Durbin Watson Test is defined. If I understand it correctly, the option DW is used for the number of seasons in my data. How can I generally check how many ...
3
votes
0
answers
173
views
Difference in SAS PROC MIXED between DF when using type VC vs FA0(1) for one random effect model
I don't understand why the degrees of freedom (DF) are different between TYPE=VC and ...
3
votes
1
answer
121
views
Logistic regression with complete separation AND repeated measures
Consider a typical logistic regression on data with a binary response $Y$, and some predictor variables $X$'s.
I understand that when the event is rare, or in the case of complete separation, one ...
0
votes
0
answers
59
views
Variable Clustering (varclus) R-squared from SAS in R
I am using the varclus function from the Hmisc package in R. Are there ways to produce summary tables from varclus like those in ...
0
votes
0
answers
69
views
In Stata or SAS, how do I run a stacked regression with entropy balancing?
My objective is to run stacked regression (DiD) with entropy balancing in the setting of multiple timing for treatments.
Initially, my data consisted of panel data for firm-years. I then stacked this ...
3
votes
1
answer
91
views
Exploratory analysis to find out characteristics of low scorers
I'm currently looking at three specific questions of a feedback survey and have been tasked with finding out the characteristics of the lowest scorers, to see if there are any patterns or common ...