instruction
stringlengths
9
38.7k
Yes, this has been asked before here, but for different reasons. In the E-Step nothing is calculated, we simply define the function, yet once it is defined it is defined once and for all. We could even define it in a way, such that it would not need to be redefined in each iteration by accepting a second parameter. It ...
Suppose that we have a random vector $X \in \Bbb R^n$ and a random variable $Y \in \Bbb R$, and that the joint density $f(x, y)$ is known. For a given $x \in \Bbb R^n$, what is the most efficient way in the statistics community to compute (or approximate) $E[Y| X = x]$?
I'm running/ reporting lmer analysis for the first time and have a hypothetical question related to a few of my models. I'm using R lmer package - my models are generally of the formula: model=lmer(dependantVar ~ continuousVar*catagoricalVar+ (1|Subject), data=data, REML = FALSE); anova(model) In some instances, I h...
Suppose that four variables of $X$, $Y$, $L$, and $C$ have the following relationships in the form of directed acyclic graph. $X$, $Y$, and $C$ are observable variables while $L$ is a latent (unobservable) variable. If one is interested in modeling the relationship between $X$ and $Y$ through, for example, regression,...
I have just calculated an odds ratio between the variable vaccine group (experimental and control) and the variable flu (got the flu or did not get the flu). I found the odds ratio to be 0.25. Is it correct to interpret this in the following way? The odds of developing influenza are 0.25 times less for individuals who ...
In this example: what is the third term in attr(,"Pars") within the apVar of the lme object (model.c$apVar in this example)? I know it is related to the correlation of the two random effects, but how is this calculated? How can I calculate this manually from the correlation in the output of VarCorr(model.c)?
I would like to simulate a dataset of a Discrete Choice Experiment (DCE) that would be analysed with a simple multinomial logit model. For example, the DCE could concern consumers preferences for two different food items with different attributes (e.g., calories, fat content, price). I was thinking to use a Monte Carlo...
I'm running GLM(M)s on proportional data ([0,...,1] ) using a binomial family and weighted to number of trials. ProportionFlowertoPod_Site.b = glmmTMB(PropFlowtoPod ~ Site_ID, family = binomial, weights = RepEffort, data = RepSucPodPlant) Where PropFlowtoPod is proportion of flowers on an inflorescence that developed...
The following is the pseudo algorithm for using eligibility traces in Q learning: In this algorithm, for a given state and action derived from the policy, we get the delta (reward + discounted Q for next state and next action - Q for current state and action). Why do we use the common delta to update all Q(s,a) for a ...
Using the urca package in R, and the ca.jo() function, I can run a Johansen test and get the test statistic and critical values of the test. However, the function does not return p-value(s). I was wondering how to manually find the p-value given the results from the ca.jo() function, or if there was another package whi...
Hello I'm new to survival analysis and I have a question about right censored data processing. For patient B, he survived through the entire study time. Therefore, we need to use the study end date to subtract the study start date to extract the survival days for patient B?
Assuming we have the following structural causal model (SCM), with a confounder DAG structure, as follows: Noise variables: $$U_1 \sim \mathcal{N}(0,\,1)$$ $$U_2 \sim \mathcal{N}(0,\,1)$$ $$U_3 \sim \mathcal{N}(0,\,1)$$ SCM equations: $$X1=5 U1$$ $$X2=5 X1 + 5 U2$$ $$X3 =5 X1 + 5 X2 + 5 U3$$ Suppose we observe: $$U1 =...
I am calculating the CAPM model of BlackRock share price. In particular the model is: Rb=return BlackRock Rf= return risk free asset Rm = return SP500 Rb-Rf = intercept + B(Rm-Rf) In my estimation the value of the intercept is not significant. This means that we accept the hypothesis that the intercept is equal to zer...
I was reading this paper, which uses a sampling attention ($a$ is the net that gives the distribution of attention, $f$ takes the samples and classifies them), and derives the gradient as follows: Which means that if we consider $f$, we have that the gradient wrt to itself is just the usual one, where instead if we co...
How does one calculate the p value for a two tailed chi square test with degree freedom of 1? prop.test(matrix(c(9,17,5,13), nrow = 2), correct = F) 2-sample test for equality of proportions without continuity correction data: matrix(c(9, 17, 5, 13), nrow = 2) X-squared = 0.22922, df = 1, p-value = 0.6321 alternative...
In their original publication, Box and Cox state ...we can obtain an approximate $100(1 - \alpha)$ per cent confidence region [around $\hat{\lambda}$] from $$ L_\text{max} (\hat{\lambda}) - L_\text{max}(\lambda) < \frac{1}{2}\chi^2_{\nu_\lambda}(\alpha)\ , $$ where $\nu_\lambda$ is the number of independent components...
I have ordinal data on happiness of citizens from multiple countries (from the European Value Study) and I have continuous data on the GDP per capita of multiple countries from the World Bank. Both of these variables are measured at multiple time points. I want to test the hypothesis that countries with a low GDP per c...
I'm curious about the basis functions generated by the call to "s()" function with default parameter values, but even more specifically I'm curious about a smoother for a single variable varname that would explicitly have a linear term for that variable (a term perfectly correlated with that single variable on the enti...
I am running a cox regression for survival analysis using the coxph() function in R for a very large dataset. My model is set up as: Surv(time,event) ~ age + race + sex +... The study period is 1 year. We found that age had a different effect in the first six months (phase 1) than it did in the last 6 months (phase 2)....
I have a response variable that takes on only 5 distinct values: -15, -5, 0, 5, 15. These values are obtained in a clearly categorical manner, meaning: if event A happens, then the outcome is 5, if event B happens, then the outcome is -15, etc... So the eventual response value for a certain observation isn't a result o...
I am looking at how sex impacts judicial decision making and am trying to balance my dataset where my treatment variable is named "gender.judge" (0 for control group, males, and 1 for treatment group, females). I want to balance the data on these relevant variables: jcs, confirmation year, party, racial minority, and j...
Question: In the table at the bottom of this question, the total number of times that $\hat{P}(x;z) > \hat{P}_y(x;z) $ and $\hat{P}(y;z)>\hat{P}_x(y;z)$ is 7. Can someone please replicate this result and explain to me what procedure? they used and why Note: The table is from Tversky (1972), and $\hat{P}_y(x;z)$ and...
Statistics help please!! I gave subjects a multiple choice test with 3 options. There were 2 types of questions in the test (easy and hard). The non-correct answer options were either lures or non lures. I'm interested whether the type of question (easy hard) and the type of error the student made (did they pick the lu...
I am using ggsttaplot - I am curious how to get effect size for each pair: # install.packages("tidyverse") # for everything ;) library(tidyverse) # install.packages("ISLR") library(ISLR) # install.packages("ggstatsplot") library(ggstatsplot) # stabilize the output of "sample_n()" set.seed(1) d <- Wage %>% group_by(...
Let $X \sim N(0, \Sigma)$ be a multivariate normal vector, and let our prior for $\Sigma$ be inverse-Wishart: $\Sigma\sim IW(v,V)$. The posterior for $\Sigma$ given $X$ is also inverse-Wishart: $$\Sigma | X = x \sim IW(1 + v, V + x'x).$$ I'm interested in the case in which we observe only some elements of $X$. I.e., w...
If $X$ and $Y$ have the same distribution and $Y=g(X)$ where $g$ is monotonically increasing, then $Y=X$ almost surely. It seems obvious, but how to prove it?
The data I have seeks to understand whether an individual's new job is of high quality. I have an individuals old job wage: how much they were paid before, new job wage: how much they were paid in new job, and new job duration: how many days they are in the new job before quitting or going somewhere else. I would like ...
I am looking for advice (do not have a specific example regarding data) but am wondering, when working with any dataset that is missing, at what point/percentage would you consider using something like multiple imputation to account for missing data? I am aware that there are assumptions that need to be held before pro...
Suppose that we have a stochastic process $v_t$ for $t=1,\ldots,T$. Here, we do not impose any assumption of the serial correlation, but the constant variance assumption is required. That is, the stochastic process satisfies $Var(v_t)=\sigma^2$ for all $t$. Is there any well-known stochastic process that has constant v...
Given the linear model: $y=\beta x+\varepsilon $ an estimator for the slope was suggested: $\widehat{\beta} =\frac{\sum y}{\sum x}$ I wish to determine if it is linear and if it is unbiased. Clearly, it is linear, no problem here: $\widehat{\beta}=\frac{1}{\sum x}\cdot y_{1}+\frac{1}{\sum x}\cdot y_{2}+...+\frac{1}{\su...
I want to estimate how likely a disease is associated with symptom (dummy hypothesis). Say that I want to assess which of avian flu, swine flu, and common flu is more commonly associated with fever. In this case, I can use binary logistic regression However, it's also possible to say that "I want to estimate if fever i...
I'm very new here and am struggling to interpret the model. Please help me in layman's terms. AR - GJR-GARCH Model Results ==================================================================================== Dep. Variable: GD R-squared:...
Using gpower, I would like to calculate the sample size to validate a bug fix. There is a software bug that appears in 3 out of 1000 test runs. I would like to validate a bug fix so that it doesn't appear within a degree of confidence. My question is what kind of "test family" do I choose for that? I am a bit overwhelm...
I want to show an inverted U-shape relationship between two variables: "minutes spent in a room A" and "trustworthiness in others". The hypothesis is that those who have low and high trustworthiness are the ones who spend the least amount of time in room A, whereas those with medium level-trustworthiness spend the most...
I have daily mean temperature for 20 years for 5 different locations. How can I compare the time series statistically? The locations are all in UK so the seasonality is the same. I want to see if the series have any differences. In the best case to see if they are statistically different with some test.
I did a little experiment and saw that the gmdh algorithm works very well for these toy data, much better than random forest. X <- matrix(data = c(rnorm(2000)), ncol = 5, nrow = 500) colnames(X) <- c("a", "b", "c", "d", "e") Y <- c(10 + X[, "a"] * X[, "e"]^3) par(mfrow=c(2,1),mar=c(2,2,2,2)) matplot(X,t="l",lty=1,...
I am looking at the difference in mean reaction time change between 2 populations. Although I subtracted the new reaction time from the original(there was mostly a reduction in reaction time across the population) there are still some negative mean change values. Shall I proceed in using these negative values in linear...
I am reading the PYIN[1] research paper, and I am having difficulty understanding stage 2. I have looked at the Librosa[2] implementation, however, I would like to clarify my understanding. From Equation 6 in the PYIN[1] paper, it appears that $(1-\sum_k P^*_k)$ is the difference between unity and the sum of the voiced...
I recently came across a problem where I want to predict a timeseries let's refer to it as T1 but it seems that two other time series, let's call them T2 and T3 have some predictive power on the T1 time series. Now the question came up, I can use either multivariate analysis and include the series T2 and T3 as endogeno...
I am a beginner R user and admittedly only have relatively basic statistics knowledge. But I am keen to learn I have a patient data set in 2 groups (n = 50; group 1, n = 35, group 2, n = 15), who were measured for 'C' at 6 time intervals (0 = 0 months, 3 = 3 months and so on), every 3 months. The time measurement is no...
If X and Y are two independent Weibull distributions with the same shape parameter, what distribution is the min(X, Y). I am trying to find out the hazard ratio for the following case. If I model Z=min(X, Y) with 2 independent Weibull distributions and C=min(A,B) with the 2 independent Weibull distributions, and all ha...
I have a problem analyzing two variables of my experiments. Variable 1 is the Signal to noise ratio, that is the relevance of my signal of interest with respect to the noise, just a noise measure. Variable 2 is the score, the precision of my algorithm. I have seen that when the SNR is low, the algorithm very usually sh...
In R, I am using the survey package (inverse probability weighting) to conduct these tests on paired data: Weighted Wilcoxon Signed Rank test Weighted Sign test However, I am struggling in doing them. By defining a design and then using the functions signed_rank<-function (x) {sign(x) * rank(abs(x))} summary (svyglm...
I will use an example of an antidepressant drug trial as an example to illustrate my question - hope this helps as I, too, am confused. Suppose a study is testing the effects of some drug on people with depression. The participants are split into independent groups, with each group being given a different dose of the d...
I made a toy dataset where the test part doesn't look like a train. I would like to know why random forest works so bad compared to GMDH (see Wikipedia). my question why does random forest lose stability on test data and GMDH no? set.seed(111) s <- function(ve=1:500,a,f,p) a*sin(f*ve+p) s1 <- s(a = 1, f = 0.01, p =...
model = Sequential() model.add(Masking(mask_value=-1, input_shape=(None, feature_shape))) model.add(GRU(128, return_sequences=True, activation='tanh' , dropout = 0.3 , recurrent_dropout = 0.3, input_shape = (None , feature_shape))) model.add(GRU(128, return_sequences=False, activation='tanh' , dropout = 0.3 , recurrent...
I have explained my study design in this post. To summarize, I have repeated measures data of 2 patient groups for 'C' across 6 different time points. Time measurement is more of a time window - samples collected +/- a month of 3 months are included into the 3 month time point for example. Below is my current model: mo...
I have 60 numbers drawn from a normal distribution with mean 0 and standard deviation of 1. 1 realization: I then take the sum of the 60 values. I do this 1000 times and plot a histogram of the various sums I get: And I am able to fit the histogram with a normal distribution with a mean of 0 and a standard deviation ...
I’ve designed an experiment where I would like to evaluate how treatment exposure influences a binary outcome. We noticed that there was bias between test and control groups in terms of the success rate. So we included a “calibration period” or logs of successes and failures from individuals from both group prior to ex...
I've made t-test in excel with my samples and the graph showing mean values with standard deviation. t-test shows significant difference, when standard deviation lines cross on the graph. Could you please explain what's can be wrong with it?
I am calculating within-group effect sizes from pre-test to post-test. Cohen's dav reports this effect size as a proportion of the average standard deviation (Lakens, 2013): Meanwhile, Cohen's drm corrects for the fact that the pre-test and post-test measures are correlated (i.e., dependent): Some argue that drm shou...
I have a set of data measuring response variable (length) on the same individual over several time points in nine different treatments (pH). Due to the confounding effect of temperature and it's biological relevance for interpretation, this data are split into three observation periods. I am analyzing each period separ...
Consider the following two random variables: $$Z_1=U_1-X_1$$ and $$Z_2=U_2-X_1,$$ where $U_1$ and $U_2$ are two i.i.d random variables following a general distribution, and $X_1$ is an exponential random variable. It is obvious that $Z_1$ and $Z_2$ are two dependent random variables. Now, let us consider the following ...
I am trying to establish measurement invariance between two groups on a depression measure: high-school aged boys and high-school aged girls. Though my entire sample reports elevated depression symptoms, girls report higher levels of symptoms than boys. In measurement invariance testing, "scalar invariance" (full score...
Would be beneficial to apply nonlinear dimensionality reduction on a binary dataset (around 200 binary features) ? what is difference from applying MCA (multiple correspondence analysis).
Say I have two finite mixtures, each consisting of an equally weighted mix of $n$ Gaussians each with a known mean and standard deviation. Is there an efficient method of calculating the probability that a random sample drawn from the first is less than a random sample drawn from the second? The naive method is simple:...
I'm trying to do sarcasm detection on Twitter data to replicate the results mentioned in this paper. Binary classification problem. For that I used a separate set of unlabeled tweets to create the embedding matrix using Word2Vec model. Before doing that I preprocessed the unlabeled data and removed the rare words as me...
I have this problem that I'm struggling to solve Be $\left\{ Z_t \right\} \sim N(0,1)$ a stochastic process and let: $$X_t = \begin{cases} Z_t & \text{if $t$ is even }\\ \left( Z_{t-1}^2 - 1\right) /\sqrt{2}& \text{if $t$ is odd} \end{cases}$$ Prove that $\left\{ X_t \right\}$ is a white nois...
I am comparing 4 groups of samples using SPSS. The groups are 4 bathymetry groups (>0m, >-1m, >-2m, >-3m). Within each group are a number of samples n. Each sample has a recorded seagrass cover % per meter squared. n ranges between 6 and 65 for all 4 samples. Samples are not normally distributed. A kruskal wallis test ...
I need advice on how to solve this problem. Topics I see in my school are Low Risk Decision Making, Decision Making, Decision Making Under Uncertainty, and Decision Trees The results must be shown with graphs, and explanation. The company bolitas is dedicated to the sale of balls, backpacks and caps. The company has 2 ...
I have a propensity score weighted population (using IPTW) and I want to compute risk ratios on my weighted population. For this, I am using a weighted Poisson regression. Let's suppose that "married" is the outcome and I want to see the risk ratio of treated vs non treated considering married as outcome. library(Weigh...
I would like to calculate the difference in log-odds between the error of two logistic regression models, given the correct answer aka ground truth (depression present${}= 1;$ depression absent${} = 0$) and the predicted probabilities of depression being present from each model (pA and pB). I believe the formulas are a...
I would like to ask you a question regarding CNNs. Is it possible to train CNNs for such kind of pictures (~ 1100 x 703 pixels). They are scatter plots, which can be classsified into 2 categories (signal and background) based on the patterns of the dots. However, as far as I know images in the CNN process are shrinked ...
By "permissible" (for lack of a better term) I mean models which despite of a "flat" (improper) prior (i.e., $\int_{\Theta} p(\theta) d \theta = + \infty$) nevertheless produce a proper posterior (i.e., $\int_{\Theta} p(\theta|\mathbf{x}) d \theta = 1$). Under those circumstances, the likelihood does the heavy lifting,...
I’m planning a study to collect number of weeks our participants are employed each month (during 1 year time period) for an interrupted time series analysis. Thus, the dependent variable is limited to values 0, 1, 2, 3, or 4 weeks. Should I be concerned about using a Poisson distribution for such a limited range of val...
E.g. I have a time series data from day 1 up to day T. I want to compare models with Yt~Xt, with equal weight of all data set put more weight (like exponential decay) for the day more close to T Can I use AIC or BIC to compare these models?
I was recently asked the question, "In ridge regression $\hat{y}=X(X^\top X+\lambda I)^{-1} X^\top y$, why might the correlation $\mathrm{corr}(\hat{y},y)$ between the predicted values ($\hat{y}$) and actual values ($y$) remain constant as $\lambda$ varies?" My initial thought is that this could be due to the eigenvalu...
I'm new to econometrics and learning about fixed effects. If I understood it correctly, we are literally including dummy variables for every observations. For example, I have a panel data of firms and if I include firm fixed effects, that means I will have dummy variables for each firm. The question I have is the probl...
I am attempting to make a dependent variable that contains 4 survey questions that are all binary responses. I am unsure what the best way to go about doing that is potentially through a type of index. Originally, thought a logit model would be appropriate but second-guessing since the D.V. will not be a binary variabl...
I am trying to replicate Section 4.1. of a paper "On the Heterogeneous Effects of Sanctions on Trade and Welfare: Evidence from the Sanctions on Iran and a New Database" by Felbermayr et al. (2020). This paper tries to see the effect of various sanctions on trade flows, using the Global Sanctions Database (a big databa...
I want to use an ANOVA for my analysis (2x3 design). I can decide if I can safely use parametric tests. The two samples results: Shapiro-Wilk p<.001) and Q-Q plots don't seem to be normally distributed. Should I use non-parametric tests? I want to test the relationship between an ordinal variable (high/low and high/med...
I want to find input demand elasticities using a cost function. Input quantities and input prices are available for individual farmers for 5 food crops and 5 years (2015-2019). But farmers may vary across the time. I wanted to increase the sample size and then I pool the data of 5years then the total number of observa...
Is there a family of distributions that resemble the normal distribution (symmetric, spanning all real numbers, and approximately bell-shaped) but have lighter tails than normal distribution? I'm looking for a suitable prior for psychological trait, but I want to penalize outliers more strictly than is usual for the no...
I am doing text classifcation and using SciKit Learn's Chi-square test to select features. Reading about the Chi-square test, a word being present in a text should be just as predictive of a class as it being absent, since considering considering one or the other just re-labels the columns. But SKlearn gives me differe...
When I first downloaded R, every time I ran a t.test or wilcox.test, the output would include not only the p-value but also the mean of the two groups being compared, class-interval etc. I have tried using the summary function but it doesn't provide any extra detail. Now all I get is the following output only: Wilcoxon...
What exactly are the standardized and unstandardized canonical correlation coefficients and what is the difference between them?
I have been confused by the problem (9.3). I think it's reasonable when adding more predictors in the regression, the SSE would be less. Yet, I don't know how to proof it. Besides, problem 10.1 seems to imply the (9.3) is an chi-square random variable. But I still have no idea about how to prove it. Please give me som...
I really appreciate your help with my data. I am using mlogit package in R for random utility model: https://www.jstatsoft.org/article/view/v095i11#:~:text=mlogit%20is%20a%20package%20for,random%20parameter%20models)%20are%20implemented. The dependent variable "choice" of provinces depends on alternative specific varia...
My statistics teacher told us the following asymptotic result: $X \sim N(0,1) $ $$ P(X > u) \underset{u \rightarrow +\infty}{\sim} \frac{1}{u} \exp\left(-\frac{u^2}{2}\right). $$ Do you know how to demonstrate this (or if there is a mistake?) Thank you.
I am running a linear mixed effects model for time series data using R-INLA. My response variable is normally distributed. The model has a random intercept, and temporal autocorrelation between data points is modelled with a first order autoregressive structure. The parameter estimates from the model match our hypothes...
I know that I should be able to work this out but I am struggling. My dependent variable is a log variable (call it y) and my independent variable is a proportion that takes a value between 0 and 1 (call it x). I am struggling to interpret what Beta on the independent variable means for the log y variable. Any help wou...
I'm doing a random effects model. I have a dummy per treatment, which would be "Message", "MessageTax", "Tax" and "Donation" which refers to whether or not the experiment included a donation. The data comes from 2 similar experiments, but one was with a donation and the other was not, so the Message, Tax and MessageTax...
Let $X$ be a non-negative random variable with finite variance. It is obvious that its MGF $E[e^{-\lambda(X-E[X])}]$ exists for $\lambda > 0$. How to prove that $E[e^{-\lambda(X-E[X])}] \le \exp(\lambda^2 E[X^2]/2)$ for $\lambda > 0$?
Say I am trying to run a logistic regression on an individual's choice between objects A and B based on some vector of characteristics. My dataset, however, only happens to have the proportion of people who chose A and the proportion of people who chose B in different countries and a vector of aggregate characteristics...
If I use growth rate of Y as the dependent variable in an ARDL model, do predictors need to be converted into growth rates, too?
I have a classification problem, with a target categorical variable. Is a string variable that involves some sort of classification: good, medium and bad. Is there some algorithm or technique (involving ordinal label encoding, for example) that takes advantage of the 'sorted' target? Could it be an approach to convert...
Suppose $r$ is the sample Pearson correlation coefficient estimator of two random variables $X$ and $Y$, while $rho$ is the population correlation coefficient. From various sources, e.g., Is the sample correlation coefficient an unbiased estimator of the population correlation coefficient?, we know that, if $X$ and $Y$...
As part of a student project, I'm working on explaining this paper (link https://www.jstor.org/stable/43305585 ) "A simple test for random effects in regression models". For context, it provides a way to test if a random effect is present by testing (in a LMM or GLMM) whether we can reject the null hypothesis that its...
I have been trying to create a neural network from scratch. I have been trying to calculate the gradients of the weights and biases of the neural network by watching videos and reading papers, but still have been unable to get a good grasp on it. z is all the weights multiplied by the nodes of the previse layer plus th...
Let's say part of the mainstream believes that a drug X is more effective than drug Y. Another part of the mainstream believes that drug x is less effective than drug Y. A scientist appears who wants to challenge it and show that the drug X is equivalent to the drug Y, generating the same result and the same side ef...
I am running a regression of y on four variables, two of which are binary variables and two of which are discrete variables which range from 0 to 10. For context, y was data collected from an experiment, and the values of the four independent variables are provided as information to the participants. I find that the co...
In various literature, it is stated that when 2 or more variables are highly correlated it causes problems in your PCA analysis. However, in the literature that I've read, it is not stated how high the correlation needs to be in order to be too high. The solution is to remove variables that are highly correlated. My qu...
I have a Dataset that represents if in some date a bus company made any kind of traffic infraction, and how many infractions were made. This is a view of the dataset where i have the Companies, the date, how many km were traveled by the buses of that company, how many infractions were made and if in that day that compa...
I’m trying to optimize a matrix by subsetting rows and then performing a calculation on the subsetted rows. The calculation is representing each of the columns exactly once and having as few duplicates as possible while also including as many rows as possible. To be clear, the parameters to optimize are the following:...
I thought I understood the intuition behind censoring but I need to be perfectly clear about one thing which confuses me. In my course book I only have the example of censoring from below: $P(y=1) = P(X'B + u > c) \implies$ after normalizing so that $c = 0 \implies P(X'B + u > 0) = P(u > -X'B) = $ by symmetry $= P(X'B ...
I am aware this is very basic, and I think I may be overcomplicating it but can someone please confirm what the best thing to do is? I am looking at female representation within special advisers in UK Government, specifically to see whether women are reaching the highest bands of seniority (which is PB4 in the data). H...
I'm new to econometrics and recently learned about fixed effects. If I have a cross sectional data, is it possible to include fixed effects? What seemed strange is that the number of dummy variables will be exactly the same as the number of observations in this case and there will be some covariates which means the num...
I've heard that the results from regressions with first differences and fixed effects yield the same results. If so, why would someone choose one over the other? In fact, I see most people using fixed effects. Is there a reason why?
In a within-subjects design (n = 30), I had planned to run equivalence tests with the equivalence bounds set at the effect size of Cohen's d 0.35. This is partly based on previous research and partly due to my plan to infer practical (and not just theoretical) significance from the analysis. It was unforeseen that the ...
When we create kernel densities we could use different kernels. Here I create an example with Gaussian, Rectangular and Triangular kernel: When we check the start and end points of the distributions they are all the same. We can see from the Gaussian and Triangular kernels that they smoothly curve to the edges. But th...