instruction
stringlengths
9
38.7k
The straightforward application of bootstrap methods to hypothesis testing is to estimate the confidence interval of the test statistic $\hat{\theta}$ by repeatedly calculating it on the bootstrapped samples (Let the statistic $\hat{\theta}$ sampled from bootstrap be called $\hat{\theta^*}$). We reject $H_0$ if the hy...
I'm trying to gain an intuition as to why increasing the number of features could reduce performance. I'm currently using an LDA classifier which performs better bivariately among certain features but worse when looking at more features. My classification accuracy is performed using a stratified 10-fold xval. Is th...
How can I generate two correlated $AR(1)$ data series with given correlation between $d_{1,t}$ and $d_{2,t}$, $r_{12}$, where $\rho_{12}$ is correlation between the two error series $$d_{1,t}=\mu+\phi_1d_{1,(t−1)}+e_{1}(t)\quad\quad d_{2,t}=\mu+\phi_2d_{2,(t-1)}+e_{2}(t)$$ $e_1$ and $e_2$ are not the same and $r_{12}$ ...
I have a question that has been confusing me ever since I took econometrics last year. What does the "root MSE" mean in Stata output when you regress a OLS model? I know that it translates into "root mean squared error", but which variable's mean squared error is it after all, and how is it calculated? Can anybody prov...
Would any R expert explain the predic function in the randomforest package to me? I want to get two prediction results for numberic response variable A and B seperately from following regression result <-randomforest(A + B ~ C + D + E, data = dataset) predict(result) I can get one prediction result. But prediction is ...
I am trying to determine why I am getting different results with these different Wilcoxson test implementations in R version 2.15.2. I have paired data with some ties. I have read the response for What is the difference between wilcox.test and wilcox_test in R, but some of the p-values are extremely different in my dat...
I'm having a hard to deciding which of a two-sample t-test and a chi-squared test is more appropriate for these sorts of questions. Examples would be: 70 out of 120 americans like hotdogs. 50 out of 95 europeans like hotdogs. Do the two groups differ in their hotdog opinions? 1000 each of caucasians, african-americans,...
I see that lots of machine learning algorithms work better with mean cancellation and covariance equalization. For example, Neural Networks tend to converge faster, and K-Means generally gives better clustering with pre-processed features. I do not see the intuition behind these pre-processing steps lead to improved pe...
There are two laboratories measuring identical samples. One of the lab's data is non-normal, therefore I am looking for a non-parametric test. After comparing overall differences in the dependent variable (continuous) using Wilcoxon Mann-Whitney, I wish to test for differences between labs based on a third variable. Th...
I conducted an experiment with 2 independent group variables (gender and language - language indicates either native speakers or 2nd language speakers) and ran a 2 way ANOVA. There were no main effects, and no interaction. My hypotheses had been that there would be main effects and interaction. So, I rejected all 3 hyp...
I'm looking for reference to get a better understanding and overview of the methods for data modeling (mostly related to business questions like finding categories in data and setting of scoring functions for forecasting). After some internet research I couldn't single out a canonical reference. I have some very basic ...
I have two vectors of normalized data values representing two paired conditions ("methylation" and "expression"). A scatterplot of my data looks like this: I'd like to know if I am using the Wilcoxon signed-rank test correctly in order to answer some questions. Specifically, I would like to identify those data points ...
I'm working on a project to calculate the Area of Mandelbrot Set by Monte Carlo method. I implemented my code by generating standard random numbers and throwing them into the area. I used simple sampling, and I also implemented Latin Hypercube Sampling. I should also implement my project with Pure Sampling and Orthog...
I am using a Poisson regression model for count data and am wondering whether there are reasons not to use the robust standard error for the parameter estimates? I am particularly concerned as some of my estimates without robust are not significant (e.g., p=0.13) but with robust are significant (p<0.01). In SAS this i...
In TraMineR I might compute dissimilarities as such: properties <- matrix(c(# left, married, child ,divorced 0, 0, 0, 0, # parent 1, 0, 0, 0, # left 0, 1, .5, 0, # marr 1, 1, 0, 0, # left+marr 0, 0, 1, 0, # child 1, 0, 1, 0, # left+child 1, 1, 1, 0, # left+marr+child .5, 1, .5, 1 # divorced ), 8, ...
There a bunch of really good popular science books around, that deal with real science, as well as the history and reasons behind current theories, while remaining extremely enjoyable to read. For example, "Chaos" by James Gleick (chaos, fractals, nonlinearity), "A brief history of time" by Stephen Hawking (physics, or...
Is there an analytical method of looking at the geometric mean that will allow one to break it down to its various components? The focus of the question is more for financially related returns, but I am open to consider other fields as well to see if it is applicable. So the aim of the question is to get some sort of r...
I am making a square-root UKF implementation. I also use cholupdate function in Matlab. However cholupdate needs a positive definite matrix. The positive definiteness is tested using [R,p] = chol(A) where p produces 0. Then after running cholupdate, generates an error saying A is not positive definite. My problem is. ...
I am wanting to fit a Poisson distribution but I am wanting to weight some of the values as more important. Is there a way to do this in R with fitdistr() or some equivalent function? Here is what I have at the moment: randoms <- rpois(15,10) weighting <- seq(1, 100, by=1) fit <- fitdistr(randoms, "poisson") I would l...
Consider the lognormal random variables $X_1$ and $X_2$ with $\log(X_1)\sim \mathcal{N}(0,1)$, and $\log(X_2)\sim \mathcal{N}(0,\sigma^2)$. I'm trying to calculate $\rho_{\max}$ and $\rho_{\min}$ for $\rho (X_1,X_2)$. One step in the given solution I have is: $\rho_{\max}=\rho (\exp(Z),\exp(\sigma Z))$ and $\rho_{\min...
I am working on finding the relationship between equity, gold, crude oil, and currency value. I used the Johanson cointegration test. Trace test indicates 4 cointegrating equations at the 0.05 level. For using VECM the rank for cointegration in Eviews has a maximum of 3. What is the problem in this model? How do you d...
I have a dataset of data and two of the fields are user comments - (I did not design this form) I would like to know if there is anything I can do to get any information from a comments field - are there any best practices out there to make use of this type of data in a report / analysis ? Otherwise is this data usele...
I am thinking about how one should check for time consistency of in a GLM. Model: $$ \eta_{ijk} = \beta_{0} + \beta_{i}Year+\beta_{j}Var1+\beta_{k}Var2+\beta_{jk}(Var1 \times Var2) $$ If I were to add a time-interaction for the interaction variable (i.e. without time interactions for main effects) $ \beta_{ijk}(Var1\ti...
I am trying to code a program that reads the status of a list of servers, records the time they fail, stores it , and using this data it chooses a server that will MOST probably fail next time, and shows it. I will need some help to approach this problem. Will you suggest a Markov Chain Model? or something else?
I have 3 millions instances with 30 features each and I am trying to reduce it in a sensible size for my computer for a classification problem. What are possible methods I can use to reduce the data while keeping the quality of classification reasonable.
Say that I have an experiment where I test the reaction time of a number of subjects where each subject makes many reaction time trials. In a Bayesian framework the reaction times ($y$) could be modeled by a hierarchical model with prior distribution both on the subject level and for the whole group of subjects. A diag...
People got a list of different documents and were asked if they find things important or not and if they think the documents would be easy to get or not. People belong to different groups and have different professions. For answering they had three choices: 0 = not important 2 = moderately important 4 = very important ...
Suppose $Y$ is an ordinal variable such that $Y = 1,2,3,4$ corresponds to levels of impairment. So $Y=1$ is the last impaired and $Y = 4$ is the most impaired. What is the purpose of latent variables? That is what is the purpose of the following $$ \alpha_{j-1} \leq Z \leq \alpha_{j} \Longleftrightarrow Y = j$$ Does th...
Suppose we have a sample of size n= 9, where the sum equals 27, and the sum of the squaredvalues equals 113. Sample mean is 27/9=3 and mean of squared values is 113/9 = 12.56 Can we then say that the sample variance $S^2 = E(\overline X^2) - E(\overline X)^2 = 12.55 - 9 = 3.56$ ?
I am in a situation where I have sample with $n=19$, and the the data are not normally distributed (according to the results of a Kolmogorov-Smirnov test) for all the variables. The data were collected using Likert scales in a questionnaire. So now I am unsure whether or not I can use a parametric test or whether I n...
For an online unsupervised learning algorithm, data-points are learned sequentially. The performance may improve if in addition to the unlabelled data we have some labelled data-points (i.e. semi-supervised learning with a small amount of labelled data). In this situation, it may be attractive to let the algorithm deci...
Can the lack of main effect have the same underlying cause as the lack of interaction in 2-way ANOVA? My results failed to reach significance for variables of gender and language. Is it possible that a confounding variable which affected language (and thus made it impossible for main effect of language to reach signifi...
How it is understandable for computer (or software) that a sampling method is Random? In fact, it is possible to data sampling by random method in N cases but one of the N cases been like as non-random! That means sampled data randomly is like non-randomly. Now, in this case, how computer find out that selecting sample...
I was wondering if there's any good R libraries out there for deep learning neural networks? I know there's the nnet, neuralnet, and RSNNS, but none of these seem to implement deep learning methods. I'm especially interested in unsupervised followed by supervised learning, and using dropout to prevent co-adaptation. /...
I have a project for which I had to do a 5-fold cross-validation. The dataset comprises of 5 days, so we take one day as our training set and apply on the remaining 4, rinse and repeat till we get full coverage. Pretty standard stuff. Now, here's my question, once I finished the cross-validation, I am left with True P...
I have two data sets with PDFs roughly like this: $$ p(x) = \left\{ \begin{array}{lr} .75 & x = 0\\ \text{Lomax}(x) & x > 0 \end{array} \right. $$ i.e. it's continuous, except there is a huge number of points at $x=0$. I wish to tell if the values in one set are lower than the other. Howev...
I am trying to use a Negative Binomial regression model for some count data in which the dependent count variable takes on the values 0, 1, 2, 3 or 4. I am using SAS and keep running into the warning: "The relative Hessian convergence criterion of X is greater than the limit of 0.0001. The convergence is questionable....
Does anyone know how / if can you treat an independent variable as BOTH a between AND within subjects variable (ideally in SPSS ANOVA-repeated measures). That is, we have a repeated measures study where the independent variable is DEVICE (6 levels). The catch is, each respondent will only be exposed to 3 devices and ...
I recently read an article about how you can increase longevity by sleeping less. This article, like many others I've read, references a statistical study and implies that causation was found between two events(sleeping less and living longer). Well I'm not a statistician, but I'm aware of the common fallacies about ca...
With this data: y <- c(1.105808, 1.000000, 5.304166, 33.665875, 139.865451, 109.033703, 176.639245, 1.000000, 28.521134, 44.281121 ,150.478570, 18.465554, 85.096431, 81.907537, 124.631226, 1.000000 , 11.237294 , 20.480519 , 68.642176 , 30.047630, 54.051613 , 134.068889 , 72.215041 , 1.00...
Disclaimer: I'll happily admit to not really knowing what I'm doing when it comes to General Mixed Models but hopefully this thread can bring me a little bit closer to some kind of understanding. If, however, this is an "OMG, you're such a n00b" question which should be closed and never spoken of again, I'll totaly und...
I am doing some problems on hypothesis tests on the variance, using a $\chi^2$ distribution. I need to find the power of the test, and I tried to write my own code in R. I don't know how to express non-centrality parameter in terms of other known values like sample size or sample variance. I was looking at R package ...
I have an item for which I slowly collect rating values on a website. It is a movie item on a website and at the beginning it has no rating but I assign it a Gaussian prior $N(\mu_0, \sigma_0^2)$. A person comes on the website and gives it 4 out of 5 (note that I have only discrete ratings 1, 2, 3, 4 and 5 stars) My q...
I have implemented a semi-supervised Naive Bayes that makes use of the EM algorithm to iteratively learn from unlabeled data in a text classification problem, but I am not sure of the processing done in the Maximization step. According to the page 7 of this document, in the Expectation step the current classifier is u...
A class teacher has the following absentee record of students: No. of days 0-6 6-10 10-14 14-20 20-28 28-30 38- 40 No. of students 11 10 7 4 4 3 1 What will be the mean no. of days a student was absent? I am unable to understand since the class sizes are diff...
I’m reading A Probability Path by S. Resnick, and I got stuck on one problem: Problem 1.16 (pp. 22-23) Suppose $C$ is a class of subset of $\Omega$ such that $\Omega \in C$, $A \in C $ implies that $A^c \in C$, and $C$ is closed under disjoint unions. Using an example, show that $C$ does not have to be a field. ...
Consider the below ANCOVA example in which I am trying to predict a continuous varibale y by two variables x (continuous) and a (nominal) and their interaction. As I am also interested in the intercept I am using summary.lm() instead of summary.aov(). My question is: does the significant intercept in the below example ...
I am reading this article which is the first approach on Bayesian variable selection. In the discussion section it says that one of the major limitations of the particular method is that it cannot be used with a class variable that has more than two levels. Does anyone know why?
An econometrician told me that I shouldn't keep adding new variables to the model even if I have reason to believe they're relevant to the response variable, as it "reduces the efficiency of the other parameters". That is, even if you have 40 variables that "should" be related to the response, you should draw the line ...
I am TAing a course where students are required to turn in their lab reports formatted like a submission to the journal Ecology. Figures and graphs in this journal do not have the horizontal lines that are the default setting in MS Excel, so I am constantly taking off points because students forget to delete them. I'...
I want to create some CARTs in R. I used Clementine a while ago for this purpose and remember I could go into "manual mode" and grow the trees by hand. I could manually choose which variable to use for what split and so on. Can this be done in R?
Is it important to scale all the features into a common range (normalized) when using random forests (bagging) in classification. Or can random forests handle features in different ranges without problems (bias to the larger values). Some features may have a value in the 1000-range and others in the 0-1 range.
EDIT: OK, having spent the last couple of hours checking out some pubs on functional data analysis, I am actually starting to feel a little silly having asked the question in the first place! It's becoming obvious (well. Still a tad -ish but getting there.) - Thanks, @PeterFlom for pointing it out! I'll leave the quest...
Is there a way to return a matrix of means for levels of a factor using effect() in R? I see if you simply call an effect object you get the values printed, but I would like a matrix of these values that can be operated on. You can do this for the lower and upper confidence intervals like this: ef1 <- effect("factor", ...
Imagine the following scenario: You have an urn with $r$ red balls and $b$ blue balls. The red balls have two hooks, the blue balls have one hook. Consequently, if $r=1$ and $b=1$, you would be twice as likely to fish a red ball rather than a blue ball. What is the expected fraction of blue balls that you fish without...
I have been wondering about this for a while. When I have mutually exclusive dummies in the same regression, are their coefficients independent? For example, suppose I have the following: $y_{i}=\mathbf{\mathbf{\alpha'}}\mathbf{x_{i}}+\beta_{0-5}I\left\{ z_{i}\in\left[0,5\right]\right\} +\beta_{6-10}I\left\{ z_{i}\in\...
I have some data like this: id pop var 1 593 51 2 592 31 3 346 20 4 1214 70 5 1063 66 6 1370 71 each id represents a school. There are around 1847 of them, of which 1833 are unique . pop is the number of pupils in the school. var is the number of pupils with a particular trait. In...
I'm collecting online recipes in order to calculate average ingredient proportions for, say crepes or pastry. Most volume based units of measure in english recipes (cups, tablespoons, teaspoons) differ from country to country and sometimes differ within the same country depending on whether traditional, metric or gover...
I am doing a college classification project, in which I am required to classify some handwritten digits. Assume that my input is a N*D where D is the number of features in each input sample and I need to classify each sample into "K" classes. I am using multiclass logisitic regression and in my training phase I am tryi...
Using plot.rq in the quantreg package in R, we can plot the coefficient estimate distribution, and get something like this: What are the dotted red lines? Extensive googling has revealed that the middle one is the average of all 99 estimates, but still don't know about the dotted red line.
[I hope this is the correct place to post - if not, please feel free to migrate the question to another site]. I would like to build a computer program that will play games effectively, and I want to use reinforcement learning techniques, namely, let two copies of the program play against each other, and use http://en....
What is the right method for computing average of percentage values? Arithmetic average, geometric average, or something else? Here's an example of problems I'm talking about. Suppose for years 2009, 2010, 2011, the annual GDP growth rates are 1%, 2%, 3%, respectively. What is the average growth rate over these three y...
What are examples of published empirical studies that can be proven wrong in the light of more recent theoretical results?
Please, I need some support (not solution) and input to know if the way is right to go on. Consider the communication of binary messages in a transmission medium. Any message sent is selected from two possible symbols, $0$ or $1$. Each symbol occurs with equal probability. It is also known that any numerical value sen...
I just came across this great analysis which is both interesting and beautiful visually: http://www.nytimes.com/interactive/2012/11/02/us/politics/paths-to-the-white-house.html I am curious how such a "path tree" can be constructed using R. What data and algorithm does one need to construct such a path tree? Thanks.
I am measuring one parameter (say weight) repeatedly at different time points (say monthly, for 1 year) for two groups (say experimental and control groups). My data looks something like data posted in this question: Analyzing repeated measures ANOVA with two groups. I want to compare the change in weight over time 'be...
I have a preliminary study with very small sample size (n=26), and I want to test for differences between males and females and similar things, so I have to divide the sample and make comparisons of 13 vs 13 subjects. Is there a test I can use to give an idea of what the differences might be? Is it possible to use the ...
I'm trying to compute ANOVA effect sizes from papers that provide an F value without other information. If I understand correctly, the effect size for a single-factor ANOVA is $$ \eta {2} = \frac{ss_{between}}{ss_{between} + ss_{error}} $$ And the F value is: $$ F = \frac{(N-k)ss_{between}}{(k-1)(ss_{between} + ss_{er...
I am classifying different texts and I wondering about some features that are highly correlated. I have 49 features. Some features are absolute counters (integers) but most features are relative counters(float between 0-1). I am running F-score (univariate) and I am getting the following three features with the highest...
I have a data set of a bag of words. I randomly choose some points and use them for testing and the others are used for training. case (1) I just take each data-point from the test set and classify it as having the same class label as its nearest point from the train set. case (2) I do the classification using any kno...
I want to understand how I can compute the eigenvectors and the eigenvalues of a matrix using dimensional reduction.I have a Matrix $M$ of dimensions $n$ x $d$ using dimension reduction I can compute the eigenvectors and the eigenvalues of the Covariance matrix $MM^t$. After computing these eigenvectors and eigenvalues...
I am looking for libraries available from Python to compute marginals on an undirected graphical model (i.e. a random field) with loops. Some algorithms for this could be LBP (loopy belief propagation) or GBP (generalized belief propagation), although I don't need to use a specific algorithm. I checked SciKit learn bu...
In his widely cited paper Prior distributions for variance parameters in hierarchical models (916 citation so far on Google Scholar) Gelman proposes that good non-informative prior distributions for the variance in a hierarchical Bayesian model are the uniform distribution and the half t distribution. If I understand ...
This is probably a very simple question! I am trying to compare two groups on a balance evaluation, a normal group and one with a neuro deficit. However, these two groups are significantly different in age. Since age is significantly correlated to the balance score, is there a way to compare my two groups while taking...
I was reading this paper http://stat.wharton.upenn.edu/~lzhao/papers/MyPublication/MultiExpert_ICML_2009.pdf However, I have some confusion related to maximum likelihood derivation in this paper We have the parameters of the model $\theta = \{w,\alpha,\beta\}$ The maximum likelihood is given by $P(D|\theta) = \prod_{i=...
I have some trouble understanding complete sufficient statistics? Let $T=\Sigma x_i$ be a sufficient statistic. If $E[g(T)]=0$ with probability 1, for some function $g$, then it is a complete sufficient statistic. But what does this mean? I've seen examples of uniform and Bernoulli (page 6 http://amath.colorado.edu/co...
I have a question about the Dirichlet posterior distribution. Given a multinomial likelihood function it's known that the posterior is $Dir({\alpha_i + N_i})$, where $N_i$ is the number of times we've seen $i^{th}$ observation. What happens if we start to decrease $\alpha$s for a given fixed data $D$? It seems from the...
Is it necessary to have data that looks normal if you want to apply a dynamic correlation coeffient (dcc)? Should the explanatory variables in the dcc method also be normalized? My dataset has a high kurtosis and bad skewness. I used the log10 to try to make it more normal, but remarkably the kurtosis is much higher ...
I am trying to generate binomial probabilities (in R) as follows: ${N \choose{k}} p^{k} (1-p)^{(n-k)}$ My problem is given $p \approx 0.03$, and $N =400$, $k>270$, I get the probability equal to $0$. I am actually evauating all the $k$'s up to $n$, so a high $n$ returns a probability matrix that has $0$'s for $k >270$....
Supposing a parameter of interest is assumed to follow an exponential distribution with rate $\lambda$. Two competing prior hypotheses are formed such that the first prior is given by $\text{Ga}(\alpha, \beta)$ and the second prior is given by $\text{Ga}(\alpha+1, \beta)$. Furthermore, data is collected on the paramete...
I forget the terminology, but this happens when you regress, say, $Y$ on a list of variables, and you suspect that $Y$ affects, say, $x_3$ in addition to $x_3$ affecting $Y.$ I forget how this is called, and how to deal with it -- something along the lines of adding an extra variable? Thanks!
I know there are three types of averaging methods in statistics: Mean, Mode and Median. Are there any other type of averaging methods that statisticians use? How do I know which method is best for a particular set of data?
Briefly, my study ($n=188$) consists of using PCA on a 111-item questionnaire claiming to have 21 different disorders (factors). I did a MAP test (Velicer's Minimum Average Partial test) to decide on the number of factors to extract (it said 16), followed by PCA with varimax rotation. Using .4 as minimum loading. The t...
I'm having a bit of a problem with Stata syntax. I need to do the following regression: $$y = ax + bz + c(xz) + e$$ where both $x$ and $z$ are instrumented and also the interaction term $xz$ uses the instrumented values of $x$ and $z$. Just generating the predicted values for $x$ and $z$ and using them as regressors y...
If I have only $\mathrm{Var}(X)$, how can I calculate $\mathrm{Var}(\frac{1}{X})$? I do not have any information about the distribution of $X$, so I cannot use transformation, or any other methods which use the probability distribution of $X$.
Does the ICC require that my data are normally distributed? If more information about my data is needed, just ask.
I am trying to solve this problem on and off for the past couple of months but to no success. This was supposed to be a very small part of my PhD thesis in navigation but I guess I underestimated the problem. It sounded trivial at the beginning, but now I am not so sure. Lets say we have two ships, each with its own no...
After doing some reading about the binomial distribution I found this about lower and upper bound probabilities We can get the lower tail probability of X as: $$P(X \leq x)=P(X=0)+...+P(X=x)$$ Stata: as binomial(n,k,p) R: pbinom(q, size, prob, lower.tail = TRUE) And the upper tail probability can be obtained as the ...
Suppose I have the following dataframe: id time sale_yn number journey_nr "nVariables with observation specific variables" abc 10 0 1 1 abc 11 0 2 1 abc 12 1 3 1 abc 13 0 1 2 def 10 0 1 3 def 15 1 2 ...
See the related, but old question: Correcting p values for multiple tests where tests are correlated (genetics). Multiple comparison methods based on bootstrap have the advantage of taking account of dependence structure of pvalues. Regression models are just a little more difficult to bootstrap, though. There have bee...
I'm having a problem to predict hits from original features. I tried using LDA on original matrix but the thing is that probability of getting a hit vs non-hit is 95% vs 5%. That said after running LDA I get true positive rate of 5% and true negative rate of 96%. Now, my understanding of LDA makes me think that when it...
I have a question about plm package. My code is: fixedmodel <- plm(formula=Inv_ret~Firm.size+leverage+Risk+Liquidity+Equity, data=datanewp, model="within") In the plm vignette the authors write: This is called the fixed effects (a.k.a. within or least squares dummy variables) model, usually estimate...
Analyzing educational datasets we have samples of children from samples of class in samples of schools - we have sampling weights, so I use the survey package e.g. to do a linear model. But this kind of design also requires looking at the mixed effects. But this isn’t possible using the survey package. I can do this in...
I'm using Deviance information criterion to assess the fitness in my Bayesian hierarchical model. The functional form of this criterion is as follows: $$DIC=p_{D}+\bar{D}$$ where $p_{D}=\bar{D(\theta)}+D(\bar{\theta})$ is effective number of parameters and $D(\theta)=-2log(p(y|\theta))$, $p(y|\theta)$ is sampling dist...
How would I, experimentally prove that two random variables drawn either from the same population or two different populations are independent (or for that matter of fact dependent).
The ID3 algorithm uses "Information Gain" measure. The C4.5 uses "Gain Ratio" measure which is Information Gain divided by SplitInfo, whereas SplitInfo is high for a split where records split evenly between different outcomes and low otherwise. My question is: How does this help to solve the problem that Information Ga...
In a fuzzy regression discontinuity design, what does the exclusion restriction look like in terms of a conditional expectation between the instrument in the first stage and the error term in the structural equation? In IV, we normally say that the first-stage must produce a non-zero estimate (and preferably one that...
For one of my grad school classes I am working on a projection analysis. The data includes projected year-end balances. These balances are projected every month of the fiscal year (starting in July and ending in June) to see how much approximately is the Y-T-D amount going to be. I'd like to analyze the projected balan...
I want to check whether a group of patients are significantly different from their control group. However, I also want to check if the p-value is still significant in case a covariate is taken into account. For that I created a simple data frame in R: data <- data.frame(group = c(rep("CTRL", 10), rep("P", 10)), re...
Given $X_t$ a multivariate random gaussian variable of covariance matrix $N_{tt'}$ diagonal in Fourier space (sampling is equally spaced), I would like to parametrise its power spectrum as: $S_X(f) = \frac{a}{f^\alpha} + b$, for $f\in[f_{min},f_{max}]$ and estimate $a$, $b$ and $\alpha$. Any idea how to get these estim...