Skip to main content

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.

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, ...
Elong Chen's user avatar
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 ...
L.S.'s user avatar
  • 321
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 ...
Chris's user avatar
  • 1
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 +...
cpahanson's user avatar
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 ...
cpahanson's user avatar
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/...
Emma Jean's user avatar
  • 615
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 ...
L.S.'s user avatar
  • 321
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 ...
Calio Xu's user avatar
  • 123
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 ...
Calio Xu's user avatar
  • 123
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 ...
user avatar
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 ...
Davor Josipovic's user avatar
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 ...
Ronald Carlos's user avatar
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 ...
mautumn1's user avatar
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 ...
user avatar
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 ...
sixfortyseven's user avatar

15 30 50 per page
1
2 3 4 5
48