instruction stringlengths 9 38.7k |
|---|
Let $X = B * [(u + \epsilon_u) - C]$.
$u$ represents a true measurement value.
$\epsilon_u \sim U(-0.5, 0.5)$ represents the error associated with that measurement value.
$u + \epsilon_u > 0$.
$B$ and $C$ are constants where $B,C > 0$.
Let $Y = d + \epsilon_d$.
$d$ represents a true measurement value.
$\epsilon_d \sim ... |
A little background. I have a territory in which I've recorded the position of 10 individuals at regular 5-minute intervals. This territory is divided into 3 zones A, B and C. Around this territory are two zones accessible to visitors, V1 and V2.
Each line of my df corresponds to a 5-minute interval, and my variables a... |
I have read papers that have used this model for the imputation method.
Link: https://ivivan.com/papers/IOTJ2019.pdf
I want to read more and be able to use these models for the imputation of my own datasets. Can someone provide relevant documentation?
|
Apologies if this is an elementary question - within-person designs are not my forte, and I am more used to designs in the quasiexperimental econometric tradition.
I have two designs that are the same in terms of the question I am asking here, where (to use a proxy case) I'm basically asking people if they like 10 diff... |
Dear statisticians and enthousiasts,
I'm writing my master's thesis and am dealing with an issue trying to assess the effect of my continuous predictor variables on my partially 'missing' dependent variable. A summary of the problem: My panel data matrix consists of predictor and control variables with annual observati... |
In statistics, we often assume that a particular variable follows a certain distribution. For example, if we know $Y \in \{0, 1\}$, then we can assume $Y \sim \text{Bernoulli}(p)$, since using the Bernoulli is really the only way to model a binary random variable. This assumption allows us to rely on tools such as logi... |
Let $(A,B,C)$ follow a multinomial distribution:
$$(A,B,C) \sim \text{MultiNom}\left(n=100,p_1=p_2=p_3=\frac13\right).$$
Define $X$, a discrete random variable as
$$X = f(A,C) = 2A + 3B + 4C = 2A + 3(100-A-C) + 4C = 300 + C - A$$
where $X$ has integer support from $[200,400]$.
If you wish to find the probability for $X... |
I do an exam with $12$ questions. There are $5$ possible answers to each of the $12$ questions.
Is this the expected number of correct answers if I guess answer for each question? $$\frac15 \times 12 = 2.4$$
p.s. I am not actually doing an exam and this isn't homework. This is check I understand how expected values w... |
Consider a multinomial distribution $[p_1, \ldots, p_n]$ and a collection of counts $[a_1, \ldots, a_n]$. I would like to know the expected number of multinomial samples needed until every element $i$ has been sampled at least $a_i$ times.
More formally let
$$
X_1, X_2, \ldots \sim \operatorname{Multinomial}([p_1, ...,... |
I have a robotic arm doing three different tasks, each task is colored differently as seen below. Data correspond to a Z-axis of the gyroscope sensor.
The idea is to detect anomalies. However, I need to know where the anomaly occurred as well, so I need to keep track of the tasks. I believe spotting the starting point... |
I am creating a neural network using batchnorm as a regularization method to enable deep models and prevent overfitting.
I understand that batchnorming supresses the internal covariance shift introduced by randomly chosen minibatches, so it generally makes sense to add it to every layer in the model. However, the batch... |
I was wondering what does a process $X_t$ with constant autocovariance $\gamma(h)\equiv c$ look like ? Is there something interesting to note about it ?
A particular case of this process is $X_t \equiv c$, in fact its auto covariance is given by $\gamma(h)=0.$ This case is of course not very exciting.
|
It is known that a stationary process (mean and autocovariance do not vary with respect to time and the 2nd moment is finite for all times) has a Toeplitz covariance matrix.
But is the converse true ? If a process has a Toeplitz covariance matrix, is it stationary ?
My guess is no, since we can just take a process $X_t... |
I anticipate acquiring a rather large data set, consisting of several data streams of complex waveform data generated by a single complex process, simultaneously measured at different locations, and a stream of measurements of an index of the quality of output from that process measured over the same period but at a mu... |
In the popular likelihood ratio test of goodness-of-fit (also known as the G-test: see, e.g., here), the test statistic is calculated as
$$G(\mathbf{O},\mathbf{E})=2\sum_{i=1}^{M}O_{i}\log\frac{O_{i}}{E_{i}} \tag{1}$$
where $\sum_{i=1}^{M}O_{i}=N$ and $\sum_{i=1}^{M}E_{i}=N$ are histogram counts of $N$ samples. I am in... |
I have a dataset where $X\in N\times1$ is the carats and $y\in N\times 1$ is the diamond price in USD.
I modelled the data using $$
y\sim\mathcal N(Xw,\sigma)
$$I removed the bias from the model so that at $x=0$, the price would be also $0$.
Now, I standardized the data by computing$$
\hat X=\frac{X-\hat\mu}{\hat\sigma... |
I am currently using the "seasonal" package in R to perform X-13ARIMA seasonal adjustment when I notice that the data I am analyzing have significantly larger volatility in recent years than in the past. As a result, the "seasonally-adjusted" time series does not remove the seasonality in those high-volatility years, a... |
I'm doing a psychological study where I am trying to find if different demographics (Gender, Age, Political Affiliation, Ethnicity, and Education level) have an effect on their susceptibility to the framing effect (measured on a 1-6 Likert scale). I will be doing this analysis three times, once for each question that I... |
Consider the i.i.d. sample $U_1, U_2 \cdots, U_n$ from the uniform distribution $U(0, 1)$. I should find a possible values of $r>0$ to have an asymptotic distribution of
$$ n^r \frac{U_{(1)}}{U_{(n)}}$$
It is possible to get through with its CDF, and I know how to get it from the joint PDF of order statistics: the CDF ... |
Hi all,
Im not sure how I am meant to workout the forecast with just this information. I have been able to find all the missing information (the cells that are filled white) through rather simple formulas, however failed to find the forecast (cells filled yellow). Do I need more information to workout the forecast?
Th... |
I have three ARIMA models by these output by R. After using auto.arima there is 3 models that R told me which (1,1,0), (0,0,1), and (1,1,1)
According to these models
how could I represent the syntax below to input the parameters into the models?
> fit110 <- arima(Diff1, order = c(1,1,0), method = "ML")
> fit110
Call:... |
I have a question about Bayesian statistics.
In a book called PML, I came across the following description of how to calculate the marginal likelihood of a beta-binomial distribution.
In the case of the betaBernoulli model, the marginal likelihood is proportional to the ratio of the posterior normalizer to the prior n... |
I have a logistic regression model, whose goal is to predict the winner of a sports match (a two-player heads-up game). I am using statistics from both players as features; using the difference between the statistics, instead of the raw values. For example, Person A's average running time - Person B's average running t... |
I was wondering if I could get some help with my problem.
I have a complex Markov chain where I cannot track its transition analytically. Instead, I decided to simulate $N$ numbers of particles for $T$ periods to get the particles' stationary distribution.
However, given that I have no theoretical benchmark to compare ... |
I developed a ML algorithm (Xgboost) to predict a target in my data set.
I obtain here the results of my predictions on my test set :
tibble(
truth = factor(c(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)),
response = c(0, 0, 0, 1, 0, 1, 0, 1, 1, 0),
prob_0 = c(0.8829266, 0.8831959, 0.7404993, 0.3993190, 0.6625459, 0.3192227, 0.... |
I am running a logistic regression in a sample with ~150,000 observations. I am predicting three different outcomes, x, y, and z, that occur in ~10,000, ~4,000, and ~2,000 cases respectively (for each I am running a separate glm).
When checking the residuals, they cluster in two groups, with most of the residuals from ... |
I am trying to figure out t test for dependent samples and need help.
Let's say that our research question is "is there a difference between length of essay and narration text in children with developmental language disorder", in class we learned that our dependent variable would be "length of essay and narration text"... |
Can anyone help me solve this confusion? I don’t know why z-test and p-value test for hypothesis testing is used for this, given that the pattern between the two questions are same.
Records show that students on average score less than or equal to 850 on a test. A test prep company says that students who take their co... |
I have applied binary logistic regression. My independent variable is bullying victimization (0/1), dependent variable is self-cutting (0/1), covariates are age, gender, school performances, depression, family relationship and so on. In model I in adjusted only bullying victimization and self-cutting, i.e. crude odds r... |
I did an experiment in which I asked 150 people to predict the likelihood of the home team winning eight upcoming NBA playoff matches. Subjects were separated in four different treatments in a 2x2 design. The aim was to find the influence of different stakes on their answer, and more importantly if they significantly b... |
for this formulas PE(pos,2i)=sin(pos/(10000^(2i/modelDimension))) and PE(pos,2i+1)=cos(pos/(10000^(2i/modelDimension)))
we know PE for position i follows: [sin(i/denominator[0]),cos(i/denominator[0]), sin(i/denominator[1]),cos(i/denominator[1]), sin(i/denominator[2]),cos(i/denominator[2]),...]. note each element here i... |
I have a categorical data that I don't know how to generate the significant level.
Row = Group A and Group B;
Column = Unchanged, upgrade, downgrade (From left to right)
7
6
4
4
0
6
I tried to run in SPSS but pearson chi square test cannot be used as 4 cells have expected count <5. Fisher exact only limited... |
To give you an example: let's suppose I have 3 subscales A, B and C, each with 5 item, and I know
The Cronbach's alpha of each subscale (let's suppose: 0.80 for A, 0.85 for B and 0.90 for C),
The Cronbach's alpha of the global (15-item) scale (let's suppose: 0.90 for A+B+C=S).
If I assume that the three between-sub... |
I am having trouble understanding the application of chi square "power of the test" in context to hypothesis testing. The following is not homework, I'm simply providing an example to convey my confusion and obtain clarity from more experienced people throughout this forum.
Consider n=12 failures, total testing time is... |
I have a dataset with calf serum BHB concentration expressed as low (<150) or high (>150). I want to know if there is a difference in BHB between age categories (weeks). I tested two analysis:
Pearson Chi-squared test. Here is the script with the results:
t <- table(file$BHB_gr, file$stade3)
chisq.posthoc.test(t, met... |
I work in biology and I´ve done an experiment exposing an invertebrate to a pesticide at different temperatures. One of my endpoints is hatching success of their eggs. The animals lay clutches of eggs, usually 10-30 eggs. My impression is that I shouldn’t model the data using proportions as datapoints (e.g., 0.7 propor... |
I'm very new to SEM/Path analysis. I'd like to know how to design/visualize a within-subjects SEM/Path analysis. For example, suppose I'm measuring a path from a cognitive measure X that should impact vocabulary and grammar (which share some variance) that, in turn, should impact a linguistic outcome Y. However, the sa... |
I had the idea that we can overcome the conditional independence of features within Naive Bayes classification by assuming that we have latent (hidden) sub-classes. Let me explain.
For example, if we have this features vector
(1, 1, 0, 1, 0)
in Naive Bayes we would calculate probability of this vector given a class li... |
I have a dataset with approximately 2500 observations and 50 variables. The response variable is numerical, so my objective is to build a regression model. I have built one penalized linear regression model and one xgboost regressor model.
The linear model has obtained a MSE of 7.31 and a R2 score of 0.62
The xgboost m... |
I am trying to compare two groups of different sizes in a dependent sample. Here's a fictional example of how my data looks like:
| ID_Nr | Value |Treatment
| 1 | 12 |1
| 1 | 22 |1
| 1 | 4 |1
| 1 | 17 |1
| 1 | 7 |0
| 1 | 29 |0
| 2 ... |
I am starting a new project and need to determine the sample size needed to be able to determine statistically if there is a difference between treatment and control groups. I was going to use power calculations in order to determine the sample size needed. However the one wrinkle is that the team we are working with w... |
Let the one-step transition dynamics of a system be given as
\begin{equation*}
\mathbf{P}[X_{t+1} | X_t] = N(f_\theta(X_t), I)
\end{equation*}
that is the Normal with mean a function of $X_t$ paramterized by $\theta$. My question is what would be $$\mathbf{P}[X_{t+2} | X_t] = \int_{-\infty}^\infty\mathbf{P}[X_{t+2} | X... |
In ecology, we are often working with very small samples, i.e. I only have 13 sites of each of the two farming practices I am comparing. Thus, I really don't want to discard any of my sites and thus I am planning to do weighting rather than matching. However, should I first try to match my sites first (without discardi... |
I'm implementing a decision curve analysis in my project and since the cost of screening is very low and has the added benefit of reassurance for the patients, false positives aren't of great concern- in contrast to false negatives. I think I don't fully understand the concept/how net benefit is actually calculated. Ho... |
What if we do tests, try reduce variance, but still can't get low p-value to reject the hypothesis. How to find out that there's no difference, and if so we can choose variant B just because we like it more?
|
I am trying to build a prediction model from longitudinal study after intervention. So after intervention, we followup patients 1,3, and 6 months later to see if they are cured or not. So dependent variable is cure or not, then independent variable is patients' information at baseline(sevirity level, age, etc)
I found ... |
I've got a simple (two variable) data set that resolved nicely with k-medoids clustering (PAM) into three clusters. However, for presentation, I'd like to plot the points along with a Voronoi-style diagram, with estimated borders for the clusters. The borders would, of course, lie outside the convex hulls of each clust... |
I have the following data:
Which shows how many days my sample was thermo-cycled, and the corresponding CFU/mL values per treatment (with the treatments being that some samples had water, some samples had glycerol, and some samples had F68 in them), so like after 3 days, the sample with water had a CFU/mL value of 1.1... |
I have run an experiment where in a series of trials, each of 10 animals was presented with each of 6 stimuli, and each stimulus was offered once to the left and once to the right nostril. Overall, each animal participated in 12 trials (6 stimuli x 2 nostrils). My point is to calculate the reliability of the data by me... |
Suppose I have three i.i.d. random variables $X$, $Y$, and $Z$. A model is used to generate $i$ outcomes for each variable that are used to estimate the sample mean and sample variance for each of the random variables. Where $x_i$, $y_i$, and $z_i$ correspond to the $i$th outcome of $X$, $Y$ and $Z$, respectively, and ... |
Thanks in advance!
I am attempting to quantify hospital resources using database derived variables that are all believed based on theory to be important for surgical patients.
There are about 70 variables and 140 hospitals, so dimensional reduction is key.
I also have data on tens of thousands of patients at these hosp... |
I am trying to build a prediction model of outcome of intervention. I used the logistic regression model, and Calibration and discrimination was confirmed very well. but the final model shows very small coefficient for all predictors.
How can I interpret them? Are they not associated with outcome?
My sample is only 90 ... |
I'm trying to conduct a GLMM in SPSS with a DV that is ordinal (multinomial logistic regression as dist. and link function). I've encountered two issues:
It seems like in SPSS it is not possible to have a REPEATED statement if the DV is non-scalar. My DV is a repeated measure (pre- and post-treatment for each subject)... |
I'm new to GAM so please be patient with me.
This is a theoretical question rather than a coding question.
I have a model as follows:
response variable (y) = insect abundance;
Disturbance type (categorical fixed effect) with 3 levels;
Transect (categorical fixed effect) with 2 levels;
Distance (continuous variable); an... |
I am reading Blitzstein's Introduction to Probability and come across with the following proof that I don't really understand:
Theorem: The random scan Gibbs sampler is a special case of the Metropolis-Hastings algorithm, in which the proposal is always accepted. In particular, it follows that the stationary distributi... |
Mr. X wants to compare 5 different varieties of wheat. He has access to a piece of land which has been divided into 25 smaller plots as shown in the figure below. Mr. X has asked for your help in his venture.
(a) Give an allocation of the wheat varieties to the plots so that you're able to compare them. Justify your a... |
I think I have a misconception that I hope someone can help me clarify, I do not have a background in measure theory so that might be the problem.
Say we have two random variables $X$ and $Y$ distributed according to $f_X(x)$ and $g_Y(y)$ respectively, without necessarily a common support. Both random variables are rel... |
I'm trying to do a survival analysis and I want to know how to handle unequal right-censorship.
Essentially, people enter the trial at different ages and exit either at death or at the end of the trial. I want to know how to analyze the data against standard actuarial expectations: do those in the trial tend to live lo... |
there are participants who are applied 2 different treatment methods. I tested whether these Treatment methods are effective or not with a paired sample t test, but what statistical analysis should I use to test whether the treatment method differs?
So basically i'd like to if the treatment methods differs?
Below there... |
--REPRODUCIBLE EXAMPLE INCLUDED! See below --
Hi! I'm attempting to measure a difference in sales using a Controlled Interrupted Time-Series methodology; that is, I have a collection of 'exposed' and 'unexposed' time series and I am trying to infer the effect of an exposure based on the magnitude of level-change and s... |
Setup
Suppose I have two normally distributed random variables, $s_\mathrm{prev}$ (with mean $\mu_\mathrm{prev}$ and variance $\sigma^2_\mathrm{prev}$) and $s_\mathrm{curr}$ (with mean $\mu_\mathrm{curr}$ and variance $\sigma^2_\mathrm{curr}$). Now suppose I combine them as follows:
$r_\mathrm{curr} = \omega_\mathrm{p... |
I am trying to analyze a dataset containing several observations for n = 27. Unfortunately, not every participant answered the question every time, i.e., when plotting the graph it has holes in it. I am trying to provide an analysis of the mean and variance across those functions. For this, I have to smooth them. I can... |
I am looking at a particular genomic feature in two sets of genes: set A is a positive control set, where I know this feature is overall enriched in the genomic DNA of these genes, and set B is a (much larger) negative control set, where it occurs at a lower, background frequency. I wanted to see if the distribution of... |
I understand that LSTM architectures are purposed for sequential data where an understanding of context could positively contribute to a prediction.
But if leaving this factor out (or, i.e., assuming that no context can be learnt from the data), would it be safe to assume that generally, processing larger sequences is ... |
Let's suppose I have weighted my population using WeightIt
data("lalonde", package = "cobalt")
library(cobalt)
library(WeightIt)
W.out <- weightit(treat ~ age + educ + race + married + nodegree + re74 + re75,
data = lalonde, estimand = "ATT", method = "ps")
W.out
bal.tab(W.out, stats = c("m", "v"), ... |
In a conversation about fitting CFA with clusters and sampling weights (inverse probability weights) for ordered/ordinal/categorical data in R Lavaan, fit indices (GoF) were referred to as "voodoo", and robust standard errors as 'true' and 'fake'. Stata does not provide such indices, perhaps for a reason. (I don’t know... |
I am trying to build some linear mixed models in SPSS, and am having a little trouble with the syntax - particularly with regards to the repeated measures aspects of my design.
I have around 40 participants, each of whom took part in 4 sessions: baseline, active, passive and control. I would like to find out if the rel... |
I'm currently trying to re-teach myself some econometrics (last studied about 10 years ago) by reading Causal Inference, the mixtape and the classic Mostly Harmless Econometrics.
I'm currently running through the three arguments as to why we should think that linear regression is a sensible thing to do. The first of th... |
I am currently investigating the effect of the implementation of eco-labels on unit sales with a difference-in-difference estimation. I have a variable period indicating the pre- and post-period, a variable label indicating whether the product is labelled or not, some control variables and the variable lr which contain... |
I'm fitting a logistic regression on a large dataset (n=89260, 17 predictors) with a class imbalance (1% positive class). I've tried to follow Dr. Harrell's teachings so I fit my full pre-specified model (I don't expect any interaction between predictors):
Logistic Regression Model
lrm(formula = label ~ rcs(ery, 3) + ... |
I have been doing a little research about the several cross validation methods but there is an issue that remains as a doubt for me in the Monte Carlo method. Let's suposse I have 2,000 data points. 500 with target 1 and the others 1,500 with target 0. So what will be the correct procedure with balanced train-test data... |
I am trying to build a model for predicting Olympics Medal counts.
My data looks like this;
year country gdp pop athletes gold tot tot_gold avmedals muslim host comm soviet oneparty
1 2000 Afghanistan 5316 20094 0 0 0 298 915 1 0 0 0 0
2 2000 Algeria 54790 3... |
I have a linear regression model which its only task is prediction, not inference.
I'm making an analysis to check a few assumptions of the linear regression model I created are attended, such as no endogeneity by checking the relationship of the independent variables with the error term, and linearity itself, by check... |
I am running some exploratory tests on a dataset and have a conceptual question as I start to dive in. One of the strongest predictors of the DV (which is interest) was level of education, a dummy variable. OLS single regression results below.
Residuals:
Min 1Q Median 3Q Max
-2.6304 -0.6304 0.3... |
I wanted to get some opinions with an idea that I have explored for a little bit. This is an experiment and I would like to know if this is mathematically plausible or not.
Imagine $\bar{x}$ is the reconstruction of $x$ in a typical vanilla VAE.
Since the VAE output is considered lossy, we can assume that the pixels ... |
I did propensity score matching for retrospective data, and now I want to run outcome analysis. For dichotomous variables, I heard that I need to do McNemar test since I should treat propensity score matched data as paired ones.
Typical t-test table for dichotomous variables would be like:
Treatment group
Control ... |
I have results of testing four different image datasets that are identical in all aspects sample size number of classes, number of images for each class etc. except they were captured using different methods. They are tested on the same object detection model and I have the Precision, Recall and F1 scores of the tests.... |
I have been searching for an estimator that can find patterns for data with two columns. Below is an example of data to explain what exactly I am working with:
A
B
1
0.22
1
0.30
1
0.11
2
0.07
2
0.50
2
0.90
3
0.89
3
0.01
3
0.99
4
0.76
4
0.56
4
0.45
So, data is something like this and I ... |
I have a dataset with columns: (subject, method, recordingDate, side), which I am modelling in R using lme4:
modelA.full <- lmer(ASSR ~ Method + Side + (1|subject/side) + (1|recordingDate/method) + (1|subject/method), data = Data, REML = FALSE);
In the above, the point is to model recordingDate & subject as random fac... |
I am running a linear regression (random effects GLS) with a log transformed dependent variable and a non-log-transformed independent variable. I am using standardised coefficients. The standardised coefficient of that linear dependent variable is -0.156. I know when the dependent variable is log transformed one needs ... |
I am trying to find the best way to fit my data, it looks like a modified sigmoid (code below). The problem I have is that my critical chisquare value is very high, am I then correctly calculating the degrees of freedom ? In my opinion it should be the number of data points minus the parameters of my function ? Then w... |
I have used a function in the R package boot that give me diagnostic plots for a generalised linear model: glm.diag.plots(). I dont have experience with these, and thus don´t know how "strict" to be in assessing them. Can I rely on my model?
glm(formula = cbind(Hatched, Nothatched) ~ Temperature + Pesticide +
Temp... |
I have a following issue. Suppose that I would like to know, how age of a marathon runner impacts his or her final marathon time. I run two separated regressions (for men and women):
Men: $time = \alpha_{0}^{M} + \beta_{1}^{M} \cdot age$
Women: $time = \alpha_{0}^{W} + \beta_{1}^{W} \cdot age$
Of course, men are faster... |
Normally if you have $N$ samples of a random variable, from which you estimate both the sample mean and sample variance, you need to account for the missing degree of freedom in the sample variance:
$$Var(X) = \frac{1}{N-1} \sum^N_{i=1} (x_i - \bar{x})^2 $$
But what if the sample mean is estimated from a larger dataset... |
As the title suggests, I am trying to divide a group of people randomly into different teams of equal size. However, each person has parameters that go with them (such as age). If there is only one parameter, I understand that it is easy(ish) to equally distribute people based on that single parameter. However, if each... |
I know there are several posts about this, but I could not find exactly what I need. I have GPS track data (from an underwater vehicle) for short intervals of 1 second (time-stamps on data). The data are noisy and especially when the vehicle stops the track becomes messy. I'd like to smooth the track to calculate a rea... |
So i got a data set, where the depented variables as well as the predictors are binary. Now I'm a bit confused about what test i should use to examine which predictor has a significant influence to y. Below an example data set:
set.seed(556)
y <- data.frame(y = rbinom(8, 1, 0.6))
predictors <- expand.grid(list(x1 = c(0... |
Good morning,
I'm interested in the convergence of empirical distribution functions. In particular, let us suppose to have a population with unknown distribution function $ F(x) $ and that I can sequentially draw samples from it. While I collect the samples, I can build a histogram and update it as soon as new samples ... |
I want to generate a random sample of size n from poisson distribution with parameter l but the sum of these samples should be equals to some number say y. Is there any way to achieve this? i dont want to generate n-1 samples and subtract the sum of these from y.
|
I am trying to do Poisson regression from scratch (only using numpy). I have the following code, but the output makes no sense to me.
import numpy as np
First I generate some data:
# generate data
x1 = np.random.normal(10, 5, 1000)
x2 = np.random.normal(20, 5, 1000)
error = np.random.normal(0, 1, 1000)
y = 3*x1 + 4*x2... |
While I was looking into the difference-in-differences (DiD) approach, I found many posts commenting that beyond ordinary calculations, the model should control for unit and time fixed effects.
Suppose:
$$y_{} = \beta_0 + \beta_1Treat + \beta_2After + \beta_3(Treat \times After)$$
Why should the above fixed effects be ... |
I am having troubles in understanding the formula in cobalt package used for standardized mean difference calculation in BINARY variables
data("lalonde", package="cobalt")
library(WeightIt)
library(cobalt)
W.out <- weightit(treat ~ age + educ + race + married + nodegree + re74 + re75,
data = lalonde, ... |
I have the below dataset:
## Import libraries
import pandas as pd
from lifelines import WeibullFitter
#Create dataset
data = {'cycle': [1, 2, 3,],
'breakdown': [1, 0, 1,],
}
#Convert to dataframe
df = pd.DataFrame(data)
print("df = \n", df)
Now, for a Weibull distribution function, the baseline h... |
Assume
$\mathbf{h} \in C^{N \times 1}$ is a Gaussian vector with zero mean and Covariance matrix $\mathbf{R}$.
Also $\mathbf{A} \in C^{N \times N}$ is a deterministic diagonal matrix. In this case, what is $\mathbb{E}[\mathbf{h} \mathbf{h}^H \mathbf{A} \mathbf{A} \mathbf{h} \mathbf{h}^H]$ ?
|
I have all in all 600 measurements: 20 subjects x 15 different stimuli x 2 ears (presented in each ear separately). I use 4 different methods to detect whether there is a significant response in each measurement. The output of each method is either 0 (not significant) or 1 (significant). I need to test which method giv... |
Are anyone familiar with OpenMx's capacity for handling ordinal data in SEM using a link function like ordered logit or probit (Stata gsem does this)?
Some folks have highlighted issues with feeding polychoric matrix data to SEM and CFA, so I look for alternatives (otherwise Lavaan enables that easily).
I have read tha... |
Let $X_1,...X_n$ be an iid sample distributed as $\mathcal{N}(\mu,1)$. We have the following tests $$H_0: \mu=0~~~\text{vs.}~~~H_1:\mu\neq 0$$and we use the statistic $T=\frac{1}{n}\sum_{k=1}^n X_k$ and the test function $$\delta=\Bbb{1}_{|T|\geq Q}$$ for some $Q>0$. I want to find the probability of committing a type... |
A common point of confusion in introductory math stats classes is the difference between the joint density (formally a function of the data parameterized by the parameters) and the likelihood (formally a function of the parameters parameterized by the data).
Is there a name for that same expression considered formally ... |
I have a dataset of ~2000 phylogenetically linked strains. These strains encode 2 binary traits and were isolated from 3 different environments (A,B,C).
I want to test if encoding the traits makes strains more likely to exist in a certain environment, and if the two traits interact (environment ~ trait1*trait2),
but I ... |
I am looking for a formula to help me determine the accuracy of a population.
Here is my business problem.
I have about 1 million scanned documents of many types that are currently unclassified sitting in one folder.
I have used an AI program to group each different type of document into each own folder.
So I now have ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.