Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sas]

A proprietary cross-platform general-purpose statistical software package.

0
votes
0answers
16 views

SAS PROC NLMIXED for correlated ordinal data [on hold]

I have a dataset where its response variable is clustered ordinal data (1, 2, 3). I fit my model using the following code using SAS ...
0
votes
0answers
14 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
20 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
36 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
9 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
18 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
28 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
25 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
20 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
14 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
33 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
17 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
18 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, ...
0
votes
1answer
36 views

Comparing OLS regression coefficients with SUR in SAS

I have the following code in Stata that I'm looking for the equivalent in SAS. Stata code: ...
1
vote
1answer
33 views

Statistical Analysis Software [closed]

I am a psychology student at UCF. I intend to pursue a master's degree in industrial and organizational psychology. We use SPSS in the psychology department. How prevalent is SPSS used in offices? ...
1
vote
0answers
56 views

Can MCMC to be too computationally inefficient if you have too many random interactions?

Suppose I have a regression where the response variable is sales, and I have various drivers of sales as the independent variables. I want to build a model using MCMC but I am unsure if it is even ...
1
vote
0answers
8 views

Data points (over time) that are both spatially even and odd

I have a set of data that has both spatially even timepoints (0, 7, 14, 21, 28 days) and spatially uneven (76, 99, 103, 133 days) timepoints. These are bodyweights collected at each of these days, and ...
1
vote
1answer
52 views

PROC GENMOD Negative Binomial doesn't predict zeros

I am using PROC GENMOD with time series data, I have tried to work with Negative Binomial, Poisson, GEE and Zero Inflated Poisson, but in each case when I score my validation dataset, I am getting ...
0
votes
0answers
36 views

Testing the goodness-of-fit for the binomial distribution

As specified in the title, I'm trying to understand how to test the goodness-of-fit for the binomial distribution; to this aim, I followed what suggested in this link. Particularly, I'm investigating ...
0
votes
1answer
46 views

Standard errors of *partial* two stage least squares coefficients

Here partial 2SLS (I coined this term and found it descriptive) is the approach that SAS uses for 2SLS. Compared to "ordinary" 2SLS which in the first stage projects all explanatory variables $X$ onto ...
0
votes
1answer
25 views

Biased dependent variable on logistic regression

I am working on a logistic regression with a biased dependent variable, (only 22 observations for 0 but 222 observations for 1) on SAS program. In such case, what can I do to transform the dependent ...
0
votes
1answer
60 views

R equivalent of SAS PHREG: HAZARDRATIO

I am trying to find the equivalent of the SAS PROC PHREG: HAZARDRATIO command in R. Specifically, I want to evaluate the effect of a drug vs. placebo for different values of BMI. My SAS code is: <...
1
vote
1answer
30 views
2
votes
0answers
36 views

R logistic regression throwing error

I have data with 6 predictor variables and a response variable (default ). When I do a logistic regression using probit estimation, I get a result different from SAS. (the link to my data https://...
0
votes
1answer
100 views

Combining Intermittent Demand and ARIMA

I have a time series dataset, where a customer may purchase fuel one week and not purchase again for 2-3 weeks. I need to forecast when a customer is likely to purchase and how much they will spend. ...
0
votes
1answer
34 views

How to calculate all treatment effects in SAS with ANOVA?

In a hypothetical experiment, rats are given four different treatments and the increase in their liver fat is measured. I am being tasked with computing the overall mean and the treatment effects. ...
0
votes
1answer
182 views

How to run a Two Way ANOVA in SAS? [closed]

I have a data set that looks like below. I have to find if the scores are different across the four days. I understand I need to run a Two Way ANOVA for this test. I'm quite new to SAS if anyone could ...
0
votes
0answers
14 views

how to simulate with randdirichlet in SAS

My data has 100 obs, in 4 categories, each category has 22 obs, 25 obs, 35 obs and 18 obs . I want to create a random sample for these 4 proportions with randdirichlet in sas. Is the following the ...
0
votes
0answers
13 views

Allowing cluster-level residuals to covary in Proc Glimmix

I am modeling the probability of a child being retained in kindergarten based on individual and school-level factors. The model includes random intercepts and slopes, as follows: ...
1
vote
1answer
19 views

Does it make sense to do a polynomial contrast on a continuous time variable?

I tried running a few polynomial contrasts in SAS for a continuous time variable for linear, quadratic, cubic and quartic contrasts and the F values for each were the same. When I used categorical ...
0
votes
0answers
82 views

Difference between PROC CATMOD and PROC GENMOD for log-linear regression

I am reading "An Introduction to Categorical Data Analysis, Second Edition" by Alan Agresti. Data I am trying to fit is presented in Table 7.3 in the book. The log-linear regression by PROC GENMOD is ...
0
votes
0answers
120 views

Decision Tree with unbalanced dataset in SAS

I have a dataset with a binary target variable. This variable is highly imbalanced i.e. the # of True case is ~1% and # of False cases is ~99% The other limitation I have is that I can only use ...
0
votes
0answers
11 views

Mantel Test of Proportion : Aggregating categories different significance

I have a dataset representing for a specific marketing event editions (1 event per 1 year), the number of partecipants, and the outcome of their partecipation If In sas I use the Mantel Exact test to ...
0
votes
1answer
22 views

Can I force the direction of hazards ratio?

I am doing a survival analysis using Cox's proportional hazards model with several predictive variables. Some of the estimated hazards ratio goes in an implausible direction, which contradicts what we ...
0
votes
0answers
33 views

Events/Trials Syntax vs. Single-Trial Mixed Model - Beta-Binomial Model

I'm a touch confused about modeling an events/trials outcome when the Bernoulli trials are not independent, such as when a series of Bernoulli trials are observed from the same person. I cannot find a ...
1
vote
0answers
45 views

Confidence region for multinomial distribution with k=7 - including 5 zero values in dataset

I have a multinomial distribution with $k=7$ and an observed dataset $n_i = \{62, 35, 0, 0, 0, 0, 0\}$. While it was quite expected that $n_i = 0$ for $i \in \{3,4,...,7\}$, there was no way to ...
0
votes
1answer
58 views

Type of transformation needed for Clustering in SAS E-Miner

I'm performing a cluster analysis with a dateset that contain over 100 varibles (after imputing, replacing and eliminating correlated vars ..) Before hiting the clustering, for the transformation ...
0
votes
0answers
15 views

C&RT Rule Set missing rules?

I configured a C&RT 2-class classifier model from a dataset and then saved the results to a table that I exported to a server running SAS. I used "Generate->Rule Set" on the C&RT model to see ...
0
votes
1answer
140 views

How to Translate Sampling SAS Code into R ? [closed]

I am trying to translate a SAS sampling method into r and wondering if there is a comparable r method that I can leverage for the following SAS code. ...
0
votes
1answer
37 views

Is 3x3x2x2 ANOVA possible?

I just don’t want to look dumb suggesting it. I have 4 categorical IVs with a continuous DV. Two IVs with 3 levels and two with two levels. Am I right to start off by testing via ANOVA assuming the ...
2
votes
0answers
25 views

Cannot get Terpstra-Jonckheere to match between R and SAS

I am trying to replicate some SAS code in R, and I'm having some issues with the Terpstra-Jonckheere test. Here is my R code: ...
0
votes
0answers
8 views

Comparing two KM estimates outputs without raw data

Some raw data has gone missing, but I have the outputs of two KM curves - Both their survival estimates and patients at risk. Is there any way for me to use just the estimates to test the difference ...
0
votes
1answer
70 views

SAS proc mixed Degree of freedom

I have a dataset in this format: Factor A is a between subject factor (with 2 levels - High and Low). Factor B is a within subject factor (with 3 levels - High , Moderate and Low). I want to run a ...
2
votes
0answers
62 views

Repeated randomized 4 by 4 latin square

I have a field setup with 4 treatments in a latin sqaure setup repeated 5 times. A B D C C A B D B D C A D C A B This field setup is enclosed. The setup is ...
1
vote
0answers
58 views

Accounting for complex survey design for structural equation modeling

I am using proc calis procedure in SAS to perform structural equation modeling (SEM). I have a nationally representative survey data with person-level weights, strata and cluster variables. However, I ...
0
votes
0answers
78 views

Box-Cox Transformation on Single Variable and Interpretation of the Transformed Variable's Mean and Standard Deviation

I'm revisiting the Box-Cox transformation in one of my stats books, and I started playing around with the SAS macro %BCTRANS2 (Source: http://support.sas.com/resources/papers/proceedings12/430-2012....
1
vote
1answer
25 views

Multiple measurements within one feature

From US health insurance data, I have 300k prescriptions for an injected biologic from many patients . For each prescription there's a quantity variable, described by the data vendor as "The number ...
1
vote
0answers
32 views

Using weighted or unweighted wPCA scores in Logistic regression model-SAS

Im working on data that I should weight the data using a weight variable that I have and I want to evaluate the association of dietary pattern and obesity. So first I run Proc factor and use the "...
0
votes
1answer
180 views

SAS glimmix (poisson, ar(1)): generating fixed effects table?

I am running a mixed model in SAS using PROC glimmix, to analyze longitudinal count data (Poisson distribution, autoregressive covariance structure), and would like to produce fixed effect estimates ...
0
votes
0answers
55 views

90/10 Peak Weather Probability Demand Forecast

I'm looking into different forecast scenarios based on peak yearly weather. If I have 20 years of peak temperatures (max temperature per year), how would I come up with the max weather value that ...