The Stack Overflow podcast is back! Listen to an interview with our new CEO.

# Questions tagged [test-for-trend]

The tag has no usage guidance.

45 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
47 views

### Simple trend analysis with unbalanced & short panel data

I have the following (unbalanced) panel data: yearly sustainability ratings (ESG) of ca. 2000 individual firms over a 11-year period. The average observations per firm only covers 5.3 periods. These ...
43 views

### Is there a method to disentangle multiple lines of data that are intermingled?

I have 3 temperature sensors that record data once a minute. All 3 temperatures have the tuple value (instant, temperature). The problem is, they may come in a random order and thus there's no way to ...
35 views

### p trend for Hazard Ratios of a categorical independent variable

I ran an analysis using a Proportional Hazards Cox regression model. My variable of interest is exposure to pesticides (kg of pesticides applied within 500m of home). We do not expect a linear ...
102 views

### Looking at trend in count data

I have a clinic dataset with count data collected on a monthly basis from January 2013 - May 2018. There are 20+ variables. Almost all of them are "number of patients who accepted xyz treatment" in [...
52 views

### Nonparametric test for difference in trends?

I have an experiment where two groups of individuals get some variable repeatedly measured at regular intervals. I'd like to know if one group is trending faster or slower than the other (and in what ...
82 views

### unit root tests: trend included for bounded series

X lies in a 0,100 interval and i want to check if X has a unit root. In (A)DF, and PP unit root tests one can have an intercept and/or a trend (in addition to the level and difference X lags). But ...
304 views

### Trend analysis for change in multivariate distribution over time

At each time point, I have a multivariate distribution $x=[x_1,x_2,x_3]$. I don't have that many time points around 3-15. I would like to know whether the change of the distribution over the time is ...
3k views

### How to perform a test for trend on an ordinal variable in logistic regression?

I have a dichotomous outcome (gallstones/no gallstones) and an ordinal predictor variable consisting of four classes (body mass index <25(ref.), 25-30, 30-35, 35-45). I want to perform a test for ...
771 views

### Equivalence of p-values from Jonckheere-Terpstra test and Kendall's tau

I'm using the Jonckheere-Terpstra test to confirm whether an interval variable, distributed across five levels of an ordinal variable, display a significant trend. I'm using the clinfun package, ...
555 views

### What is a “Wald test for trend?”

I am reviewing a manuscript and the authors state that some results are by a "Wald test for trend". Has anyone heard of this? I hadn't, and Google revealed nothing. I know I always say to provide ...
34 views

### what test for analysing level of agreement of users perception on species population trends from ordinal categorical data

This is my first post ever so I beg you please forgive me any mistake (I'm also super newbie in stats). I have this dataset that comes from interviews filled by users (divers) about their perception ...
22 views

### Test for trend across ordinal categories: which test to use?

I want to test for a trend in a continuous (non-normal) response variable across ordinal categories. I came across multiple test that seem suitable for this problem. Particularly, the R package ...
9 views

### Modeling and testing for trends in hospital-surveillance (count, event) data

Intro Hi all, I'm working with hospital-based surveillance data. My peers and I are trained (loosely speaking) as frequentists. I'm mindful of the aphorism: Statistics: A subject which most ...
29 views

### how should I specify a deterministic trend in my time series data?

How can I specify a trend (term) in my time series data? does it have a logical procedure or is it totally base on visual interpretation of historical plot?
48 views

### What is the statistical test to use for a trend analysis for continuous variables (non-paired)?

Please excuse my very elementary question... Please see attached graph. This is an example of the kind of data I'm trying to analyze. The data points are non-paired. There is definitely a time-...
66 views

### Ordered Chi squared or trend tests

I've applied the Stata non-parametric test for trend (nptrend) for a two-way table including one ordered categorical data (quintiles of deprivation index). Such clearly ordered variables are ...
15 views

### A test for Explantory method for testing if multiple pooled cross-sectional panels have same trend

I am trying to test to see if there is a "universal" trend in homicide across multiple nations. First, I utilized squared semi-partial correlation coefficient by estimating two models (1) a model ...
129 views

### Implementing Hamed and Rao (1998) and Yue and Wang (2004) Modified Mann-Kendall test in R- Help with Correction Factor Calculation?

I am trying to modify the code mkTrend.R from 'fume' package to implement Hamed and Rao (1998) variance correction approach. From the code of mkTrend, the following line is very confusing (Line-29 to ...
93 views

### Can the Mann Kendall Trend test be used on binary data?

If I have a dataset consisting of binary data e.g. (0,1,0,1,1,0,1,1,1,0,0,1), can I use the Mann-Kendall test to determine if there are an increasing or decreasing number of 1's? (My question is less ...
14 views

### Nonlinear methods for detecting and measuring the strength of a trend in the context of unit roots

I am looking for statistical methods to detect the presence and strength of a trend in the context of unit root testing. We could for instance use a trend-stationarity ADF test: Here the t-statistic ...
177 views

### Stochastic or deterministic trend

Having run panel unit root tests, we cannot reject the null of individual unit root (Im, Pesaran), suggesting a non-stationary series. Question 1 At this point, how do we know if we have a ...
123 views

### Using the likelihood-ratio test as a Cochran-Armitage test for trend

Maybe this is a silly question, but I need to perform a test for trend in a 2x3 contingency table and I've been said to use the Cochran-Armitage test for trend with weights (0, 1, 2). Okay, that's ...
17 views

### Which test to determine if there is a difference between pharmacological reaction and population characteristic (e.g. ethnicity) in R?

I have a data set where each row represents an individual and their respective measure of pharmacological reaction (protein level) in addition to their epidemiologic characteristics (e.g. ethnicity, ...
988 views

### How to deal with different numbers of days in a month for comparison?

My question is very basic, and I'm looking for a conceptual answer. We put about 55000 values (individual deliveries) on a graph. They are sorted by day of the month to see if there's a trend and to ...
295 views

### mixed results for stationarity tests and structural breaks

Following situation: I want to forecast a time series of the number of trucks on the motorway in some country. Here how the regular week looks like: I have data for 4 years and divide the huge time ...
6 views

### Does negative Z score in Cochran-Armitage test implies the presence of an increasing trend?

Given the p-value is less than 0.05 does negative Z score in two-sided Cochran-Armitage test implies the presence of an increasing trend?
11 views

### A trend test similar to Mann-kendall but with more than one observation on each time point

I'm trying to find the right test for to determine the trend of a set of values with some measure of statistical significance. I came across the mann-kendall test but realized it had the limiation of ...
15 views

### KPSS test with different results for trend and single mean models

I am having some dilemma while interpreting my KPSS stationarity test. As in the image below, null is rejected for single mean model while not for trend model. Does it mean "after considering the ...
46 views

### Modeling Pre-Trends in Difference-in-Differences

To get right to the point, the canonical difference-in-differences design is as follows: $$y_{it} = \alpha + \gamma T_{i} + \lambda Post_{t} + \delta (T_{i} \times Post_{t}) + \varepsilon_{it},$$ ...
24 views

### Samples required by Mann-Kendall Test vs Modified Mann-Kendall Test

Does the modified Mann-Kendall test by Hamed and Rao [1] require more samples than the original Mann-Kendall test? For example, the Visual Sample Plan (VSP) tool [2] calculates the number of samples ...
47 views

### How to check parallel trends assumption in DiD when treatment occurred in different moments of time?

I analyze a reform which introduced tax cuts for small firms. Different regions pursued this policy in different years. I estimated the effect using a fixed-effect model with a dummy on being treated. ...
277 views

### KPSS: Difference between level stationary and trend stationary

Can anyone please clarify for me the differences between level stationary and trend stationary in KPSS test? I run the KPSS test with trend and level on same time series and the results are: H0: ...
38 views

### Can I do a trend analysis with just 4 years of data?

I have proportions of health service use (several different types) across 4 years. All types of health services appear to be increasing over time. I wonder if it is possible to do a trend analysis ...
51 views

### how to regress for common trend assumption

I have a database of applicants for a grant and their applications for each year. I want to know the effect of the grant on nr of publications. But first i want to perform a common trend analysis. i ...
33 views

### Estimating the trend over time

I have series of data which is quarterly. I want to analyze is there any significance increase over time. With my little knowledge about ARIMA and time series I used auto.arima function ...
276 views

### two-sided Mann-Kendall test, interpretation p-values from R:trend package

I would like to perform a two-sided Mann-Kendall Test to check if I have a trend in my data. I understand that I calculate the Mann-Kendall statistic S with And the variance of S Then I calculated ...
15 views

### What is the name of the significance test SAP uses to identify trend?

I've been struggling for a while trying to identify which test does this equation belongs to: SAP uses this method to identify trends in its automatic model selection. You can find further ...
46 views

### Order of factor in test.for.trend survminer/survMisc R packages

I have some problems with the results of the function comp() from survMisc and surv_pvalue() from survminer R packages. They ...
27 views

### Metric to Simulataneously Describe Linear Slope and Fit

I am currently running an analysis to quantify temporal linear trends across repeated measurements acquired during a physical ergonomics experiment (i.e., evaluating posture metrics collected over ...
30 views

### Search for universal monotoneous function for time-series trend removal

I have some time-series. They may be written as $$T(n)-T(n-1)=f(n)+\xi,$$ where T(n) - time of $n^{th}$ occurrence, $f(n)$ some monotonous function from number of event, $\xi$ random noise. These ...
130 views

### Non-parametric test for trend

I have non-normal data which are sampled from roughly 4 subjects at 4 dose levels. Is there a nonparametric test for trend I can use in SAS?
170 views

### Given sales data for a product, what is the best way to calculate the trend period for it?

I am looking for a statistical way to calculate an approximate in-trend period for a product from its sales data over a time period. Of course, in the 'in-trend' period, the sales of the product ...
90 views

### Which trend test should I use?

Sorry if this is a newbie question. For example, I have 5 groups and each group has different amount of people, and I got the face recognition score (in percentage, between 0 and 1) for all people in ...