Stack Exchange Network

Stack Exchange network consists of 174 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

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

1
vote
1answer
22 views
2
votes
0answers
27 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
41 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
0answers
11 views

Large relationship dataset and network analysis summary

I have an extremely large dataset in SAS of relationships circa 11million. While attempting to put all relationships on a graph would create a great deal of noise, what I would like to do is develop ...
0
votes
1answer
24 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
38 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
7 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
4 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: ...
0
votes
0answers
15 views

Small sample size using proc mixed and can't include treatment and visit interaction term

I'm analyzing data from 2 treatment groups with repeated collections at month 1, 2, 3, 4, 5 and 6. I'm interested in the treatment difference at month 6 (e.g., using the LSMEANS statement in SAS). ...
1
vote
1answer
11 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
15 views

Hybrid density based clustering using a distance matrix

I want to do clustering in my dataset in SAS for which I want to make following choices in my model: 1) Use a distance matrix which treats categorical variables and continuous variables differently ...
0
votes
0answers
8 views

Cumulative Incidence Plots - Weibull Model - Time Dependent Covariates

I am seeking to create a Cumulative Incidence Plot for a Weibull model with baseline and time-varying covariates. I am using SAS PROC LIFEREG to for this model but there are two issues-one of which is ...
0
votes
0answers
41 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
32 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
8 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
18 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
23 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
36 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
27 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
11 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
108 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
33 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
20 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
7 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
46 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
53 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
39 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
44 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
19 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
104 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
31 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 ...
0
votes
1answer
70 views

Use propensity score or logit propensity score as distance metric for control group selection?

My question is a bit of a general one (and my first on here). I'm researching different matching methods for selecting a control group in an observational study, and when checking SAS's options for ...
1
vote
0answers
17 views

interpretationInput variables ARIMA

Could anyone help me with the interpretation of the deltas: The dependent variable lnY (with y=number of calls) is differentiated 7 times, given a weekly seasonality. Independent variables: '...
0
votes
1answer
57 views

Residual Plot and QQ Plot

Is this a good residuals plot and QQ plot to verify the constant variance and normality assumption?
1
vote
1answer
171 views

Variable selection - K Fold cross-validation or Lasso regression? [duplicate]

I have a set of about 40 predictor variables for a set of 20K subjects. The outcome is a binary yes/no response, so I would like to end with a logistic regression model. My thought is to use PROC ...
0
votes
0answers
11 views

What are the characteristics of a good cluster?

I am analysing a data set using Clustering Algorithm in SAS Enterprise Miner. I have tried to change various settings to get the best results. But,I dont really know how to decide whether the model ...
0
votes
1answer
27 views

Logistic regression prediction out of boundaries in SAS

I have a big issue with my logistic regression in SAS. ...
3
votes
0answers
65 views

bias adjusted confidence interval for correlation coefficient

I stumbled across confidence intervals for $\rho$ in a statistics textbook. This was not part of the class, but I found it interesting. My textbook has a formula for this with a Fisher transformation, ...
2
votes
0answers
41 views

Insignificant “time variable” in GLM?

I'm used to GLM modelling with a time variable, eg. Month or Year, main reason being it is often used as a proxy for an immeasurable variable, or simply data you can not easily obtain, econometrically ...
0
votes
0answers
11 views

Paired Groups comparisons over 3 tests

I have data for a psychological study that follows patients across 6 sessions. The subject takes an intake test, the same test after the 3 session, and the same test again after the 6th session. Now, ...
1
vote
0answers
38 views

FGLS vs M estimator

I have been reading a lot that in Robust Regression, there are 2 ways of handling heteroskedasticity. 1)WLS - In SAS PROC ROBUST procedure, M estimator and Iteratively Reweighted Least Square. 2) FGLS ...
0
votes
0answers
46 views

Which test should I use when looking at pre/post tests for a small sample?

I am working on an evaluation for my internship site. We do a falls prevention program for older adults that shows exercises to build lower and core body strength. Additionally, we address their fears ...
0
votes
0answers
34 views

SAS – Compare same week in different months

I have been using the IF.first approach to create different interval points to compare data across a spread of months. However, I now need to do the comparison of orders purchased between weekly ...
1
vote
1answer
31 views

Approach to analysing big data [closed]

I’m trying to analyse quite a largish dataset. The sasdb7 is around 11GB and the csv is around 9GB. This is after merging the datasets, cleaning and removing unnecessary columns. I am comfortable ...
1
vote
1answer
928 views

Interpreting the Somers' D statistics

I'm running a logistic regression model by using SAS PROC LOGISTIC. In the Association Statistics table that SAS provides as analysis output there is the Somers' D stat. Could you provide an ...
0
votes
1answer
14 views

Accounting for person-time exposed in a binomial GLMM

I have a large data set where we have 5 calendar years data for each person, and we have information about the number of outcomes (taking values 0,1,or 2) each year. We have to account for the ...
6
votes
1answer
295 views
0
votes
0answers
51 views

How to calculate betas of logistic regression if effect sizes are known?

I want to simulate responses using built in JMP Simulate Responses feature for learning purpose. I use binomial distribution and I assume that I know effect sizes of factors beforehand. So I know ...
0
votes
0answers
211 views

Estimating hourly temperature from daily max, min and average temperature

I would like to estimate the hourly temperature of a large meteorological dataset where I have daily maximum, minimum and mean temperature for each day. Using all these three variables (max, min, and ...