instruction
stringlengths
9
38.7k
I performed univariable Poisson regression on a dataset of individuals where each individual had one row of data. The variable Sex, for example, had the incidence rate ratio 2.11 (95% CI 1.73-2.56, p<0.001) for male vs. female, and was produced with code of the form model <- glm(Event ~ as.factor(Sex) + offset(log(Per...
Consider a time-varying version of the Poisson-GP marked process on the real line as commonly used in Peak Over Threshold (POT) modelling of a variable $Y$. More precisely we have a given time-varying threshold $u(t)$, and the times $T_i$ of the exceedances over the threshold follow a non-homogeneous Poisson process wi...
I have a random variable $X\in\{-1, 1\}^n$ that is just a vector of length $n$ containing either $-1$ or $+1$. I know that $\rho$ is the probability of the event $X = +1$. I would like to describe the distribution of $X$. What is the distribution of $X$? The expression of the distribution for for $x = (x_1, \ldots, x...
I am currently trying to develop a model that takes into account different data sets that are not directly comparable. More specifically, my model needs to describe the amount of a drug in the blood, and I have given the concentrations in the blood at different times, but also the concentration in different organs at...
I ran a permutational one-way ANOVA with blocking. I would like to report the permuted p-values along with an effect size (difference in means). However, the permutational ANOVA does not allow one to get these estimates, say using emmeans. Given this, is it valid to report the mean difference with confidence intervals ...
Let's say that for a supervised machine learning experiment I am using a fixed learning algorithm (e.g. Random Forest), and I want to achieve the following: Choose optimal hyper-parameters for the learning algorithm Estimate the performance of the algorithm on unseen data and / or compare it fairly to a benchmark algo...
My business objective: I want to create a MAX diff approach where I will have multiple surveys my output will be Claims and its Posterior Probability , count of best and worst selection. For more illustration : Claims can be " reduces water wastage , " Brighter skin", reduces wrinkles" . How can I compare different Sur...
I have fish data from 2 sites and am looking to see if there is a difference in some hormone concentrations (continuous) between the sites. However, it turned out the size of the fish differed between sites so I also want to include this in my model, leaving me with one categorical (2 levels) and one continuous indepen...
Overall aim: I have patients with a very common condition and I want to see if it is significantly associated with a reduction in a certain type of cancer between 6 months to 5 years later when compared to a population that does not have this common condition. Method: I have 1000 patients with condition A and about 700...
When creating examples of matrices for CFA in R for students, I still have a problem with getting data that looks realistic - specifically, that between latent variables I often have covariance path coefficients greater than 1 (standardized!) which just seems unrealistic. Let's consider an example: library(lavaan) libr...
I have a dataset that contains the sequential locations a user has visited, with start and end times. A small sample: id, starttime, endtime, location 1, 29/06/2023 07:00, 29/06/2023 07:33, A 2, 29/06/2023 07:45, 29/06/2023 09:50, B 3, 29/06/2023 10:00, 29/06/2023 17:02, A 4, 29/06/2023 17:30, 29/06/2023 19:33, C 5, 29...
I am trying to understand what is the "Laplace correction" in R, in particular, when applied to this function: kl.div(.alpha, .beta, .do.norm = NA, .laplace = 1e-12) Do you know the mathematical formulation of that "Laplace correction" ? How to apply it to a distribution? Any reference in the Literature? The only piec...
I tend to use metrics like the following: "80% of all parcels are delivered within the given 60 min time period" or "In 90% of all emergency calls, the rescue service is on the scene within 10 minutes". Generally speaking, I use a percentile here in conjunction with another condition. Is there a scientific or at least ...
Within each run, the experiment is set up as below: Genotypes refer to: WT (Wild type as blue), PKO (Partial Knockout in green), FKO (Full Knockout in red) Biological triplicates means the same genotype grown in 3 different flasks, for example WT grown in one flasks, WT grown in second flask, WT grown in third flask....
I'm going over the book (2nd edition) and I noticed something (IMHO) odd with equation 3.6 (pp 49). I was expecting the equation chain to end just as $$ \sum_{r \in R} r \cdot p(s', r | s, a) $$ because I don't see any point in going further. Am I missing something? Why not just leave it like this? To try to answer thi...
I am making a model of income for the pension system over 25 years. I have the income as dependent variable and number of workers and average salary as independent. Both income and salary are effected by time trend. As the trend is on both sides do I have to deal with it? And if so what would be the best approach? I ha...
I know that if we have 1-dimensional Gaussian r.v. X and Y we can find coefficients $a,b$ so that $$X=aY+bZ+E[X-Y]$$ where $Y , Z$ are independent and $Z$ is standard Gaussian. Can we do something similar if X and Y are Gaussian vectors in $\mathbb{R}^n$ (for simplicity assume their covariance matrices are non-singular...
Let's say. I have multiple features that take values between (-2 and 2). Features are: "did some sport today", "did some yoga today", "took a cold shower" (for instance if you just did a bit a sport you can evaluate it as 0). Now, we have a target class "I am happy" (red: not happy, grey: neutral, red: happy). The only...
Does a transformation exist that allows to use of the Euclidean distance with the word embeddings? The Cosine distance could be a problem in my case. For example, what if I translate the vector to a polar coordinate system from the cartesian one? Does it make sense? The idea is reduce the dimensionality of such vector ...
I've been working on a weekly web traffic forecast based on time series. The primary business driver is marketing investment (spending) I have historical spending data but not future spending data. In this case, how can future web traffic be predicted? I'd like to have an input request switch where I could change the c...
I am currently working on a time series forecasting task using an expanding window cross-validation approach. My dataset is created using the sliding window technique (Window: 4, Horizon: 1). During the cross-validation process, I need to perform pre-processing steps such as standardization and exponential smoothing on...
The igraph function assortativity_nominal() in R returns a coefficient for the whole graph. This is not very informative as this treats each node homogeneously. Instead it might be that nodes from one group are very assortative while nodes from other groups aren't. Is there a way to calculate the assortativity coeffici...
I was trying to understand the derivation of the truncated derivatives in Hochreiter's origin LSTM paper. Spent a bunch of time without avail. I suppose I am missing a way to map my intuition of truncation to the actual equations. The following is a snippet from the paper. I wanted to understand the derivation of the t...
Average Treatment Effect (ATE) is a common measure to determine if a treatment (e.g. taking a particular medicine, you either take it or not) exert an effect on a particular target variable (e.g. sickness status). Additionally, as it seems to me a big part of causal inference literature, ATE considers binary treatments...
I am using lmer for a set of mixed models, each comparing a protein quantity of interest with a biomarker. Even after experimental batch correction & normalization for the proteins, these are still skewed distributions and not on comparable scales, so for those explanatory variables I am using inverse rank normalizatio...
A Gaussian Mixture model is fitted by the Expectation-Maximization algorithm. This fairly simple iterative algorithm consists of two steps and the initialization. Initialization (for k=2 Gaussians) Find (or guess) an initial muand sigma parameter value for both Gaussians. E-step Use the current Gaussian parameters to...
I am reviewing textbooks for our new undergraduate course in Bayesian Statistical Methods. In chapter 7 of Ben Lambert's book, A Student's Guide to Bayesian Statistics, he states Because of the two sources of uncertainty included in our model – the parameter uncertainty and sampling variability – the uncertainty of t...
In this video, it is said that an otherwise-stationary time series with non-constant linear mean is analyzed by taking the first difference of the time series to produce a new, stationary time series. That is, use the substitution$$z_t = a_{t + 1} - a_t$$This makes sense, since the derivative (first difference, up to ...
I have some timestamped KPI which I need to identify causal relationship among. During my literature review I came across Structural Equation Modelling (SEM). I have found some examples both in R and Python and since I am more familiar with Python, I have started working with SEMOPY. Based on this paper, this package s...
Okay so say you have sequence classification problem: extracting entities from conversations. Say one of the labels is CITIES. Say you have calculated P/R/f1/support for CITIES and it looks like this: P R F1 Support .89 .90 .89 93 Where 93 is number of positive cases of CITIES (TP + FN) in the test set, whi...
I'm reading Muthén and Muthén (2002) to learn how to use Monte Carlo simulation to estimate statistical power in regards to the coefficients of a model that is linear in its coefficients. I understand the bias of an estimator is the difference between its expected value versus the population parameter's value, i.e., $$...
we are trying to identify the best method to measure X in our upcoming study. We do not have any data from the same populations in the upcoming study but we have some test data (input data and ground truth) collected in previous studies from similar population to compare different methods (methods 1-5). We are planning...
Let's say we have a finite real-valued time series (finite subsequence of a realization of a real-valued stochastic process), $X_t$. To address my question, we make no initial stationarity assumptions. We plot the the time series and see that there looks to be some sort of trend, but we aren't sure what kind. We then d...
I am using this (reduced) dataset to run tests for detection of defects in solid wood using YOLOV5. Initial tests are promising. As can be seen in Fig. 1, my class occurences are quite imbalanced - there are many instances of different knots, however the other classes are not very well represented. My results indicate ...
I have a large dataset (the population) and a large subset of it (the sample) containing the same, continuous variables. The sample represents more than 90% of the population but is not random -- we would like the sample to be 100%, the difference is due to systematic problems. I would like to measure the extent to whi...
I am studying the point wise mutual information and I have understood that it has some limitations in NPL like the bias towards negative values (it tends to assign high scores to low-frequency events). I have seen that there are many possible correction and the most used is the PMI^k. I am wondering whether it could ma...
In factor vae, Disentangling by Factorising, there are two losses that are minimized. One is the VAE loss (eq. 2 in the paper) that includes (1) reconstruction loss, (2) KL divergence and (3) Total correlation loss, which is obtained by using a discriminator network which itself is trained via the minimization of the D...
I know that using the survey package to account for complex survey data, I can use the svycor() function from the jtools library to run Pearson correlations. But how can I run a rank correlation on data from a survey design?
I am currently learning partial least squares analysis. I understand the idea, and the method I know to get PLS is NIPALS. Since I am currently writing a paper about this subject, I want to learn SIMPLS as well, but I can’t find any article or book (free) to learn this algorithm properly. Is anyone familiar with this m...
I am conducting inter-rater reliability by doing a clinical test of 25 participants. Can I do the reliability against multiple raters? I mean that I will do the test for all the participants and then the workload will be split between 3 raters. Then I will calculate the inter-rater agreement considering the 3 raters as...
I am conducting a Meta-Analysis using metafor in R. I calculate the standardized mean difference between patient groups (PG) and healthy control groups (HC) in the self-reported utilization of rumination. Now, I would like to conduct a Meta-Regression with the mean-difference btw. the 2 groups of each study in the BDI-...
I have a longitudinal model with random slopes and a single time invariant predictor added as an interaction term. I am interested in how the growth of students scores differs based on how many minutes of lessons (LessonMinutes) they received. I ran the model using lmer and the model and results are as follows: model_i...
I am currently working on a logistic regression analysis and have encountered a situation where I have approximately 16 million data points. I am interested in understanding the influence of such a large dataset on the fit of the logistic regression model. The data I have is highly skewed, with one class being signific...
I have a few question concerning the log-rank test and would be glad if anyone can answer these: First of all I am wondering which benefits one has when plotting KM curves of two groups if one already estimated the hazard ratio. I thought of the advantage of graphical display of the survival probabilities as well as th...
Let $(\mathsf{X}, \mathcal{X})$ be a measurable space and $\pi$ and $\mu$ be two probability measures on it such that $\pi \ll \mu$ with constant Radon-Nikodym derivative $$ \frac{d\pi}{d\mu} = \text{constant} $$ Does this imply that the measures are multiples of each other? I.e. that there exists a constant $c > 0$ s...
I ran process 14 for my study, which has one categorical IV (crisis type), blame as the mediator and negative word of mouth as DV. The relevance of the crisis event plays the role of a moderator in the model. My results show that moderated mediation index is significant, yet the mediation paths were insignificant at di...
We have the data for three different treatments (A,B,C) in between-subject design. The means are correspondingly (X,Y,Z). Now because reviewers insist, we need to re-run it in such a way that each item is exposed first to treatment T1, and then to treatment T2: A->A, A->B A->C B->C C->B etc. Where B->C for instance mea...
I am hoping to see if there is an association between a biomarker (NLR) and lung function (FEV1), and have repeated measurements from the same individuals. I performed a linear mixed model analysis in R. My code is as follows: library(ggeffects) library(lme4) library(sjPlot) library(effects) require(devtools) library(M...
I want to forecast a time series data by using Ensemble Empirical Mode Decomposition (EEMD) and LSTM. However, I'm unsure about when to split the data into training and test sets. Should the data be split before decomposition, or after? I've come across a few research papers where individual IMF forecasts are being com...
I've used Cox regression to assess the risk/association of exposure with an event. My Cox analysis suggests that subjects exposed have an increased risk of the event happening compared to subjects not exposed. Finding that the exposure violated the proportional hazards assumption meant I implemented a time-dependent ex...
In short, I have a time-invariant variable that I know has a time-varying effect on my outcomes of interest. I would like to estimate a plot this effect over time. What are some ways of going about this? To give an a slightly inaccurate example, suppose we take education as this time invariant variable. However, suppos...
I have a panel data where each unit is a store that has sales information of 2 years at a weekly interval. I want to forecast sales at a store level. How should I approach in MULTIVARITE construct. I have used VAR model on time series data but not on panel data. Is there any way out using python.
I recently got confused by an expression I found in a paper, $$E[aX + bY \mid Y] = aE[X\mid Y] + bY, $$ I am confused that it's true if $X$ and $Y$ not independent. What would be the decomposition if any.
I did a binary classification with a random forest on my dataset, where I removed all correlating features and figured I'd try out a sort of "negative control" and shuffle all labels randomly and retrain the model. My expectation was, that I'd get an AUROC of 0.5, which is what happened. But when I put the correlating ...
Background Looking into the MatchIt articles made me realize that using Bootstrap with BCa is a better practice for assessing uncertainty estimation (since: "For nonlinear models (e.g., logistic regression), the delta method is only an approximation subject to error"). Using Estimating Effects After Matching article fo...
I'm participating in a competition of binary classification of disease and I'm using an XGBoost model to classify my data. However, I am experiencing a higher number of false negatives than I would like, leading to bad metric values of the model. To give you a better understanding, here is part of the preprocessing and...
I would like to cluster 400 car rental demand time series (small positive valued) based on the following 7 statistical features: entropy, number of mean crossings, 95th percentile, root mean squared, variance, kurtosis, max value These features were shortlisted from around 20 statistical features after removing the h...
I have a time-to-event variable, where the occurrence of event is determined by 5 numerical components measured at pre-specified timepoints. Missing values are observed for some components at some timepoints. My question is, is it feasible to apply multiple imputation on the component scores in this instance? For each ...
In this forum, there are opposite opinions(1), (2) on the uses of logistic regression. Ones say, it is a classification model and others say it is a prediction model. Therefore, the question that I have is: Is Logistic Regression a classification or prediction model? One can say that a prediction model is one that you ...
We are given the following model, where the event $C=1$ is defined using two other Bernoulli variables $E$ and $R$: $$P(C=1|q,d,k)=P(E=1|k)\cdot P(R=1|q,d)$$ Which we denote as: $$\theta_k=P(E=1|k), \gamma_{q,d}=P(R=1|q,d)$$ The likelihood function is thus simply given by: $$\log P(L)=\sum_{(c,q,d,k)\in L}c\log \theta_...
I am a bit confused as to why the SARIMA model requires four parameters beyond the ARIMA model just to remove the seasonal component from a time series. Obviously $m$ is required to specify the duration of the period. It is less clear how $P$, $D$, and $Q$ jointly specify the remainder of the information about seasona...
If I have a gamma mixture distribution represented as, $$f(x;\alpha,\beta) = \sum_{i=1}^{N}\pi_if(x;\alpha_i,\beta_i)$$ Where $\pi$ represents the weights of the $N$ components. For $N=2$ and the distribution having $K$ samples, the maximum likelihood estimate is given by, $p(x;\pi_0\pi_1,\alpha_0,\alpha_1,\beta_0,\bet...
I am running a moderated regression, N = 1515. I have one outcome variables, one moderator, one predictor and 5 controls. I am using SPSS for my analysis. I first performed linear regression to check for assumption violations. For this, I centered my predictor and outcome as they form the interaction term in my model....
There are some previous post treating how to validate a logistic regression: Source 1 and Source 2. But, still, those threads does not answer my question. Therefore: If a logistic regression predict probabilities. How can one validate a logistic regression? Googling I found two ways of validate a model: The first one ...
Since ridge regression can never penalize coefficients to zero, can elasticnet ever select a different set of predictors than LASSO for a given lambda?
As part of the AB test, we had a design identical to the one on the screenshot, trying to direct users from the main page to the categories. Because search by query is not as converting and leads people to purchase less. We developed a design with pictures for each category so that people would focus more on them and l...
I am trying to use a gamm4() (mgcv package) equation to model 1) how brain regional volumes change over time and 2) how brain regional volume development differs between males and females. My data is longitudinal with 435 brain scans collected from ~85 participants (2-20 scans per participant). Here is snippet of my da...
This question on F-scores for classification problems (specifically for classification; f_classif) has two answers. Each answer shows a different way to calculate F-score, in particular differences in the numerator of the F-score. Both answers produce the same number/same value; My question is: are the two answers math...
It appears that regular feed-forward and convolutions are not enough to make diffusion models work (from some personal limited testing, they do not work at all). The typical infrastructure was a U-Net and now Transformer Models seems like they are taking over as well. I understand the analogies for a residual network i...
I do my analysis on SPSS and I was doing a ordinal logistic regression to see if the group they belong in (binary, 2 groups ) predict scores on a likert scale 1-7. Whether one of the groups score fall into a higher category of the likert scale. However, the odds ratio is very high (it’s like 18) and the confidence int...
Regarding the differences between "Normalization" and "Standardization," I found that: Normalization: Is the process of making a dataset having a specified range, probably [0,1] following this equation: $$ x = {x - \min(x) \over \max(x)-\min(x)} $$ Standardization: Refers to making the dataset/ layer have Zero-mean ...
I have a problem where I measure repeated responses in condition A and in condition B for a set of individuals $i=1,...,n$. I am interested in learning about the effect of the condition in the population, for which fitting a hierarchical model with a random effect for individual would seem reasonable, using a tool such...
In the function normalizeMedianValues in the package limma, column counts are normalised such that their column medians are equal to the average of the column medians. What I'd like to understand is why the medians are first log transformed, followed by the subtraction of the mean medians, then reversed with an exp() f...
I want to explore the relationship between biological markers and cognition in healthy controls and patients. In order to determine if the relationship varies between groups, I included the interaction term in the model first as Cognition = Biological markers + Group + Group * Biological markers + other covariates and...
Say for a 2x2 experiment, the power analysis said the sample size should be over 1000 to detect 0.1 effect size. Right now, with the sample size of below 100, the effect size of .12 is insignificant with the p value being 0.8 (very far from .05) Is it fair to say that even if I attain the required over 1000 sample, the...
In statistics, are there any common strategies to deal with non-identifiable models? For example, I have heard that mixture models (i.e. based on weighted sums of normal probability distributions) can be quite useful at modelling complex datasets believed to contain different underlying populations - but on the other h...
Are there any distributions which represent uncertainty about $\hat y$ as a $t$ distribution. In other words: $ p(y\mid x, ~\text{model}) \sim \mathbf T(\hat y, \text{df}, \sigma)$ where $\bf T$ is a non standard t distribution. I suppose this could just be done by assigning the assumption to a simple regression. But d...
I need to estimate a difference-in-difference regression to understand the effect of a policy on various municipalities. I have a dataset that spans from 2001 to 2019, covering almost 7,900 municipalities. I am using R for the analysis. I have a column indicating the precise year of policy implementation for each munic...
I have a dataset of animal traits with multiple variables that I believe a two way repeated measures anova would be appropriate to analyse the data. Each individual is treated on one side of the body, and untreated for the other side. each individual is reared at either low or high temperature, and the trait values are...
I'm attempting to do some open-ended exploratory analysis/model building on real-valued time series data. I am explicitly not assuming that all elements of my class of models are linear in the lagged values and/or the lagged errors. Let $X_t$ denote a time series (in this case, a sequence of real numbers, indexed by di...
On Page 38 of van der Vaart's Asymptotic Statistics (near the bottom of the page), it says By differentiating $E_\theta t(X)$ under the expectation sign (which is justified by the lemma), we see that its derivative matrices are given by $e'_\theta=\operatorname{Cov}_\theta t(X)$. I'm wondering why this is true. A det...
I am currently working on my dissertation. From what I learnt previously, regressions are used on data from random sampling. While I was reading others' work, I saw that some students ran ANOVA and regressions on data collected through non-probability sampling, such as snowballing and convenience sample. I recalled tha...
I am trying to extract only the important neurons from the latent space of an Autoencoder to be converted later to a pattern for a model pattern recognizer. PCA Loadings helps in finding the highest correlation coefficient on the neurons of the latent space. Thus, the output of the PCA is not used, only the eigenvalues...
I have a very simple sample dataset. There are four trait values from two animals (I know the sample size is very small. For each animal, one side of the body was treated with drug, and the other was not. Then trait values from both sides of the body of the two animals were measured. Body size was used as a covariate.S...
I am currently working with intraday time-to-event data, where the time to event typically spans just a few minutes. I want to compare the survival curves of two subpopulations in my sample. The dataset covers multiple years, and I suspect that the time-to-event may change over the course of the sample. To address this...
The following may not be very difficult, but I'm struggling to get started. $T_k = \frac{Z_0}{\sqrt{\frac{1}{k}(Z_1^2 + \dots + Z_k^2)}}$, where $Z_0, \dots$ are i.i.d. standard normal random variables, is a random variable following the Student's $t$-distribution with $k$ degrees of freedom. How do you calculate $P(T_...
I'm trying to understand factors that are associated with age of diagnosis of a condition "X". This has been done in a retrospective cross-sectional study, where people are recruited if they have been diagnosed with "X". So, naturally, everyone has a diagnosis of "X" and everyone has been recruited after they have been...
I am looking for an intuitive understanding of Markov chains. As far as I understood, barring some edge cases, the probability of arriving at state j when starting from state i converges to a specific value after n timesteps, where n tends to infinity. What do these n timesteps mean? Does it mean after n timesteps, so...
I am trying to build a keras tensorflow neural network model. I have never built a NN model prior so facing challenges with some very basic error. I Was able to build the model using following code. I Am not adding packages for sake of brevity. %%time # prepare text data for LSTM max_features = 20_000 ...
I'm trying to understand the performance of students on an on-going university course. I built a histogram of grades of two exams of the same course. Here's the first exam. It seems to me that there's a relevant portion of the students that are not doing well at all and the rest seems to show something that seems ex...
I'm trying to fit some distributions to a meteorological drought dataset. I had calculated the drought parameters from the SPI index, where i could define a dataset of the drought durations (in months) and it's respectively severity. I'm working with the following dataset (n=30) Drought Duration = 6, 7, 8, 22, 8, 7, 10...
I have a latent growth curve model with two variables. X (exposure to media) was measured at 5 time points over several years. Y (misinformation proneness) was measured only at the last time point (Time 5); the reason is that this measure is new, but ideally it should have been measured at all times and treated as time...
I am looking for examples of where the normal distribution has been used in published journals or other real data sets. To add some context, I teach A-level (16-18) Maths and I would like to include examples from acadedmic papers - to give students a flavour of academic research. Most of the examples that I have found ...
How do we rigorously define the term "unpredictable" in cases of point and density prediction? The term "unpredictable" is employed in various contexts, e.g. "the outcome of a toss of a fair coin is unpredictable", "increments of a random walk are unpredictable" or "in an informationally efficient market, price change...
I'd like to compute power for some rather simple lmer models. I am aware of some packages like simr but the tutorials are not easy to follow because they demonstrate much more complicated cases than mine. When I try to adapt the cases to fit my models, I continually get results like 0.00% power. So I'd like to compute ...
I built a ML model with high accuracy using model <- keras_model_sequential(input_shape=input_shape) %>% layer_batch_normalization() %>% layer_dense(units=128,activation='relu') %>% layer_batch_normalization() %>% layer_dense(units=64, activation='relu') %>% layer_batch_normalization() %>% layer...
Background An AB test is to be run on a webpage. Users are randomized to either treatment or control, and the main outcome, $y$, is a binary outcome. The risk of the outcome depends on day of the week, as well as the device type the user is on when viewing the page (desktop or mobile phone). The main estimand of inter...
Let $(X_1,X_2, ....)$ be a infinite sequence of random variables. Supoose that te sequence is strictly stationary. For all $n$, define the following infinite array: $$ \begin{bmatrix} Y_1 & Y_2 & \cdots & Y_n \\ Y_{n+1} & Y_{n+2} & \cdots & Y_{2n} \\ Y_{2n+1} & Y_{2n+2} & \cdots & Y_{3n} \\ \vdots & \vdots & &...
The back-door criterion states that A set of variables $X$ satisfies the backdoor criterion relative to $(A, Y)$ in a DAG if No node in $X$ is a descendant of $A$ $X$ blocks every path between $A$ and $Y$ that contains an edge into $A$. My question is why do we need the first condition that $X$ does not contain a des...
I am trying to design a fairly basic lme in Matlab for an experiment. I have been trying to wrap my head around covariates design and my advisor has been less than helpful. I have various metric (dependent variables) that I wanted to look for changes in 4 different trials that were all run by 16 participants. I created...