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.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

LSMeans for repeated measures using GLM in SAS

I would like to obtain LSMeans comparisons for the within-subject factors of a repeated measures model using GLM. Here is an example ...
1
vote
1answer
14 views

Split plot design with psudo replicates

I am working on a project and need to analyze data that I know is an example of a split plot design but I am having trouble setting the model up correctly. Here's the situation: A bakery is testing ...
2
votes
0answers
22 views

Logistic Regression Residual Analysis in R (replicate influence command from SAS)

I'm looking for a quick reference on how to do some residual analysis for logistic regression in R. Oddly enough, this has not been easy to find. The data set I am working with is the Add.dat which ...
0
votes
0answers
14 views

SUR and cross equation restrictions in SAS

I am estimating a system of three equations using the option SUR in syslin procedure. Code: ...
0
votes
0answers
20 views

Different results for Cox regression

I am trying to get my head around Cox regression. I found quite a good paper on the subject by R. Tibshirani: A plain man's guide to the proportional hazards model. On page 67 he gives a toy example, ...
0
votes
0answers
8 views

Python lime on model from SAS

I have a gradient boosting model crated in SAS. I want to use python-LIME to look at local explanations for some of the cases (We don't have the lates SAS Viya platform where LIME is available). Is ...
0
votes
2answers
21 views

Factor expressed as standardised variable in factor analysis

I know that in principal component analysis, we can express PCs as a linear combination of the variables, but is it possible to do that for factors in factor analysis? For my task I am given a ...
1
vote
0answers
14 views

Equivalence of proc mixed SAS and R lme/lmer

I am looking at a 2x2 crossover study with period-specific baseline measurements and the according post-treatment outcome values Intervention (A or B) Sequence (AB or BA) Period (visit day1 and visit ...
0
votes
1answer
13 views

Find Clusters of Responses in Survey

I have results from a survey: ...
0
votes
1answer
41 views

Inquiry: Obtaining equivalent results between binom.test() in R and Proc Freq?

Problem I am reading the Wikipedia article on the binomial test and I have been unable to duplicate the purported R and SAS code showing they are equivalent. The p-value I get for R code is ...
0
votes
0answers
42 views

Estimated coefficients after SAS glmselect with Lasso

I did run a lasso logistic regression with SAS glmselect (Y=1 for event and Y=-1 for non event). My syntax is something like: ...
0
votes
0answers
30 views

Loan Vintage balance forecast

I have a Monthly Vintage level balance data from 2013-Jan at each Time on books/Month on books ( TOB_calculated). What is the best approach to project loan balance for the next 17 months for each of ...
0
votes
0answers
10 views

Define optimal Data Volume for Model Development Population?

I would like to ask and learn some approaches, analyzes about representativeness of modeling data. I want to know what is the optimal date range for model development population? I want to ask that ...
0
votes
0answers
23 views

Discarding Observations during time series analysis

I'm studying Economics and we use SAS as our programming software. What I did notice is that with the AR and MA process we usually work with 250 observations. What confuses me though is the lecturer ...
0
votes
1answer
35 views

Time Origin in Survival Analysis

I am new to survival analysis, and I am confused about time origin, or what's called calendar data format and survival data format. I have the following dataset, subjects were continuously entering ...
0
votes
1answer
29 views

P for trend test in multivariate analysis

I'm trying to analyze dose-response using trend anlysis in SAS. In 2*2 table analysis, we can use Mantel-haenszel test with proc freq. However, several study ...
0
votes
3answers
157 views

How does SAS compute standard error

I need help with estimated standard errors in SAS. I'm doing logistic regression of and I obtained the score, standard error, pd and lower and upper limit of confidence interval. I also computed these ...
1
vote
0answers
47 views

Suvival Analysis - Need Help with Converting SAS code to RStudio [closed]

In the past I have used the following SAS code to perform survival analysis for the purpose of predicting retirement. ...
0
votes
0answers
14 views

how to remove the heteroscedasticity of latent variable in tobit model? by using SAS software

i have done a tobit model. when using white test to test heteroscedasticity of latent, the outcome is significant. after search related questions in stackexchange, i found "inverse hyperbolic sine" ...
0
votes
0answers
26 views

Mann-Whitney-Wilcxon Test Adjustments

I am trying to replicate a Mann-Whitney test that was done. All I have are the data and the standardized statistic. ...
0
votes
0answers
19 views

calculate distances in SAS

I have a set of points with known latitude and longitude and I have them represented in a point shapefile in QGIS. I would like to calculate the distance between each two pairs of postal codes in my ...
0
votes
0answers
46 views

Difference between PROC REG , PROC GLM, and GENMOD

Can anyone give me a very simple explanation of each? I have no previous statistical background - what would be examples to use each? Thank you. Apologies if this is very broad but I cannot decipher ...
1
vote
0answers
32 views

Repeated Measures in Mixed Model - Creating Graphics [closed]

In learning about mixed modeling and how to perform this in SAS I came across this article https://stats.idre.ucla.edu/sas/seminars/sas-repeatedmeasures/ However, I am not able to wrap my head ...
1
vote
0answers
25 views

Wald Chi-square with survey weights in Python [closed]

I am trying to perform a Wald (Chi-square) test in Python using survey data with sample weights. I have looked in Scikit learn and statsmodels, but neither seem to support this test where the sample ...
0
votes
1answer
27 views

Single Group Pre-Post McNemar Table Set Up

I am looking to evaluate if the change in proportion for a group changed pre-to-post intervention. Essentially, is the ~7% increase from pre (~2%) to post (~9%) significant. I am running the McNemar ...
0
votes
0answers
20 views

Comparing two groups' retention at three time points

I have data from two groups. One is a control and had no intervention. The other had an intervention to help their retention. I have 3 time points at which I measured retention and attendance (both ...
1
vote
1answer
26 views

Calculate risk between classes

I am doing some exercises about logistic regression with SAS and I need to calculate and interpret odds. For calculating the individual probabilities I use those formulas: While later, the Professor,...
0
votes
0answers
47 views

What do these SAS plots imply about the regression outcomes?

I have run a Tobit regression, and in the output the following charts are generated (at the end of parameter estimates). I cannot relate these charts with the parameter estimates. Could someone give ...
1
vote
1answer
51 views

How to get rid of zero standard error values, missing t-values and p-values

I was running a couple of Tobit regressions on SAS. Surprisingly, I found that estimates from one model show 0 standard errors, missing (.) t-values and p-values. Why did this happen? What does this ...
0
votes
1answer
65 views

Which study design of R survey package to use with NAMCS dataset?

From official dataset documentation: ...
2
votes
1answer
45 views

SAS Proc expand, how does it go from lower to higher frequencies [closed]

Proc Expand is quite useful for interpolating values, however sas help is not clear how it does when we want to spread the time series from a lower frequency (say year) to a higher frequency (say ...
0
votes
0answers
14 views

Likelihood of an event based on Confidence limits

A simple problem I can't figure out. Suppose at confidence level 99.9, there is a likelihood of loss in a 1 in 1000 years. What is the likelihood of loss if confidence level is 60? Any idea how to ...
0
votes
0answers
41 views

Logistic regression - binary to continuous - how to interpret?

Given data with a binary outcome, i.e.: $0$ = no event, $1$ = event which can be modeled with logistic regression, how then do we understand the following logic: ...
1
vote
1answer
225 views

Fisher's exact test: 95% CI or p-value

I have run proc freq to test association between two binary variables using the Fisher's exact test. However, the outputs seem contradict to each other as Two-sided Pr <= P 0.0355 whereas the OR ...
2
votes
0answers
87 views

SAS and R gives different standard error when fitting Tweedie model

I would like to fit a Tweedie GLM to the data. However, even though PROC GENMOD from SAS and glm() from R gives the same coefficient estimates, they give quite different standard error. What it the ...
2
votes
0answers
30 views

Determining an appropriate analysis approach

I have data (that can be seen at the end of this post) in which 13 judges scored differing amounts of posters. Judges are randomly assigned blocks of poster numbers to score. We can assume poster ...
0
votes
0answers
67 views

SAS vs. Stata: Interpreting Tobit scale and sigma Coefficients

I'm trying to replicate a SAS script that imputes censored wage observations using a Tobit model in Stata. However, I'm confused ...
0
votes
0answers
10 views

Comparing log normal and propensity multiple imputation models using confidence intervals

I am imputing income data with information about individuals characteristics and I am comparing the following multiple imputation models: Regression method using logarithm of income. Propensity score ...
0
votes
0answers
45 views

Preprocessing of time series data to spectral analysis

If we want to find the periodicities of a time series, we can use spectral analysis. We can plot the the periodogram and find the major component, then we can find the major periods. But to do this, ...
0
votes
0answers
182 views

Is it correct that JMP has Mann-Whitney U for comparing more than 2 unpaired groups (instead of Kruskal-Wallis)?

To the best of my knowledge, the Mann-Whitney U test (also called Wilcoxon-Mann-Whitney) is for comparing only two unpaired groups, while the Kruskal-Wallis test is used for comparing two or more ...
1
vote
1answer
118 views

Power of paired t-test: R vs. SAS

If we are trying to find the power of a paired t-test, SAS offers this template (among others) in PROC POWER: ...
0
votes
0answers
13 views

Why are standardised coefficients from STB not equivalent to standardised input data?

I recently saw a question on cross-validated which I wanted to double-check. The statement said that the following two outputs should be equal: Running a multivariate regression on non-standardised ...
0
votes
1answer
29 views

Standardised beta coefficients vs standardised input

I am running a logistic regression and I both standardise and normalise my input to ensure that all the independent variables are homogenised. My friend is telling me that I need to activate the ...
0
votes
1answer
262 views

Continuous vs Categorical covariate of interest in Cox Regression

I will use aliases throughout to explain my results in brief and a few questions that have propped up in the process. Suppose I'm interested in the association of baseline measurement of blood ...
0
votes
1answer
30 views

Modelling non event instead of event

I am currently building a logistic regression model for a uni project where I want to model the 'Event' as 'default' i.e. I will be using this model to predict whether a company will not be able to ...
0
votes
1answer
41 views

Conditional Exact Logistic Regression

I have paired data for two tests. I would like to say that Test A is more sensitive than Best B, but not sure if I'm using the correct methods or if my data support it. I know McNemar's Exact test can ...
0
votes
0answers
17 views

Obtaining the fitted values of main effects and interactions when GLM coding is used

In short, I need to decompose the fitted values obtained from ANOVA into components corresponding to each term in ANOVA statement. This problem appears trivial, but it becomes tricky when GLM coding ...
0
votes
0answers
110 views

SAS proc mianalyze edf

We have a cluster randomised trial with a small number of clusters, The primary endpoint is measured at follow-up and we have missing data. We proposed to conduct a linear mixed model including ...
0
votes
1answer
58 views

importance of correlation between data for a PROC CLUSTER

i'm working on a clustering analysis on SAS. I need to improve an actual code : ...
0
votes
0answers
30 views

What is the bandwidth in a hazard rate plot?

I am doing some Survival Analysis using SAS. On the Hazard Plots I noticed some values on each curve labeled "bw" which after some research, I assume it means bandwidth. However, after much searching, ...