Quantcast
Browsing all 310 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

High frequency data challenge! Help!

I have a second-by-second data. I want to choose an observation every 5 minutes. If the data stops at 16:42:02 which is less than 17:30:00, I want to copy the final observation until 17:30:00. However...

View Article


If/Then Statement Help

Hi Everyone, I am trying to create an if then statement that states if my variable (WWT) is between this range then it equals a set value. This is how I am trying to code it in SAS: if WWT >0 and...

View Article


SAS error 22-322 Expecting one of the following

Data ConcreteAggregatePaving; set dtdb2cms.T_MSIDR; where SIDR_MTRL_CODE eq (001230117,001240117,001030016, 00103116,001040016,001050016,001050028); Keep SIDR_SMPL_ID SIDR_MTRL_CODE; rename...

View Article

Need help with unbalanced design

Hi Everyone, I have data from an experiment with a RCBD. The main independent variable of interest is crop variety (var). In 2011, we conducted the experiment in one location and there were four...

View Article

Saving odds ratios from proc logistic macro

Hi, I have been using a macro to run logistic regressions for several independent variables using proc logistic. I would like to know if it is possible to save the odds ratio estimates and 95% Wald CIs...

View Article


Proc Logistics

I normally run statistics through a GUI in Enterprise Guide (EG). It uses various macros. For whatever reason its ordered logistic regression never runs. I get errors like the following: ERROR: There...

View Article

Telling me residual not found but i defined it! Pleaseeee help!

data; input ENGINE $ SHAFTS RPM CPRATIO INLET-TEMP EXH-TEMP AIRFLOW POWER HEATRATE; if ENGINE='Traditional' then dummy=1; if ENGINE= ‘Advanced’ then dummy=2; else dummy=0; RPMCPRATIO=RPM*CPRATIO;...

View Article

proc surveyreg/ surveylogistic and age standardization

hey. thanks for the help. i am attempting to age adjust data from a complex survey(nyc hanes) using proc surveyreg and then want to obtain a age adjusted OR using proc surveylogistic. i am using this...

View Article


Simulating a data set

I want to simulate a data set for a dependent variable that takes on two levels (0 and 1). I want one of the IV to be linearly related to the DV and another that is non-linearly related. I can do this...

View Article


Variable labels in Proc Mixed

I am analysing multiple variables var1 - var10 which have labels. They are named as such so that running a do loop is easy in a Macro. When running Proc GLM it displays both the variable name and the...

View Article

merging one-to-many with multiple variables and dropping observations

I hate to do this, but I just can't figure this out. I'm trying to merge two sets of data, one of them is a year by year panel of corporate info and the other is a day by day stock return for the...

View Article

proc freq/ odds ratio/ categorical variable

hello, below is the code i am using. nativity= foreign born - yes or no agegroup20 - 20-39, 40-59, 60+ proc freq data=work.hanes_formates order=data; tables nativity*agegroup20 / chisq relrisk; exact...

View Article

Best regression using ANOVA technique: trend comparisons in a 3x5 factorial

Hello all: I need help using the ANOVA technique to arrive at an appropriate form of a multiple regression equation between the response (disease severity) and the two factors tested (spring rate) and...

View Article


Socioeconomic variables: Chi square or Fisher exact

Hi there, I am working on socioeconomic variables with SAS. I have set of variables like age, community, marital status, education level etc. I want to do basic descriptive and see if there are...

View Article

2 x 4 Factorial Plus Control -- nesting entire factorial structure in other...

Hello All: I have a 2 x 4 factorial plus a control (9 treatments) in a RCBD. The first factor is qualitative (product application frequency) and the second factor is quantitative (product rate: 0.075,...

View Article


How to subtotal rows

I need to subtotal some of my rows. For example, multipe rows have the same contract number and material code. I need to add the inspection quantity from these two rows together. Is there any way to do...

View Article

Logistic regression chi square test

Many discussions of logistic regression state that having the wrong variables or the wrong functional form will weaken the model and this will be apparent in the chi square test (apparently a negative...

View Article


Day of Week (Mon-Sun) Modeling in SAS

Hello, If I am trying to explain Y using the day of the week (Monday, Tuesday, Wednesday, etc) in SAS. can I simply convert each day to a numerical form? For example: Monday = 1 Tuesday = 2 Wednesday =...

View Article

Reapeated measures- categorical variables

Hi All, I have variables- yes or no [dichotomous] and I need to do repeated measures at 3 timepoints. What is the appropriate program in SAS? Any ideas please? Thanks.

View Article

Molding Time in SAS

How can I build a time variable into my model? I am building a model in SAS and I want to use time of day as a way to predict Y. "Are people more willing to pay for something based on what time of day...

View Article
Browsing all 310 articles
Browse latest View live