instruction
stringlengths
9
38.7k
I have 3 variables. My DV $Z$ of interest are reaction times, IV $A$ and IV $B$ are performance scores in psychometric tests. Looking at bivariate correlations, $A$ and $B$ are negatively correlated (-.40), $A$ and $Z$ are marginally negatively correlated (-.10) and $B$ and $Z$ are highly negatively correlated (-.50). ...
In feature selection for predictive models, it is usually applied a permutation test. In this test, all the values of one variable are randomly permuted and the prediction accuracy is extracted for each permutation. For example, if we have 3 variables (features), the ACC with all variables is 0.9. And, in the permutati...
I can understand that feature scaling or weighting is important in unsupervised learning, because we want a good representation of "similarity". But why is it also important in the supervised learning case like in svm? Supervised learning are supposed to learn those weights.
The residuals have an AR(2) structure. Is it appropriate to add AR terms to a fixed-effects panel model?
Can I run a Wilcoxon matched pair signed rank test after using Coarsened Exact Matching to match data? If yes, please guide me through the process. I use STATA.
I am running a GLM, using the function glm.nb (pscl package) trying to figure how what could influence a particular trait in several locations and years. The output as follow (with slight modification and removing the things beyond this question) Estimate Std. Error z value Pr(>|z|) state2 ...
I am currently building a statistical model. According to data, the variance is non-constant, and it is likely based on a factor. Is there any statistical model with variance as a function of other parameters? What is its name, and can that model be fitted in R?
At a measurement station in Munich for 14 days the sulfur dioxide concentration was measured. Analyze the influence of the mean temperature per day in grad Celsius ($X_1$) on the $SO_2$-concentration $(Y)$. Is there a special effect on weekends? The variable $X_2$ is $1$ if it was measured on a saturday or sunday ot...
I am learning statistical analysis, and am now confused about calculating the standard error of the mean. My dataset looks like.. Condition A: animal 1 - 3,4,4,3,6 animal 2 - 5,5,5,8,7 Condition B: animal 3 - 3,4,5,1,6 animal 4 - 3,1,1,4,8 How can I calculate the standard error of the mean for condition A? I am con...
I have panel data and have used the xtserial command in Stata to test whether there is autocorrelation. When I take the log of the dependent variable, the test shows that there is autocorrelation. When omitting the log transformation there is no autocorrelation. I cannot see why this is the case? Transformation of the ...
I am just looking to understand how mtry works in random forests. Please correct me if I am wrong. When you specify mtry (say 10), it takes 10 random variables from your data set and examines them for one tree. So the next tree would take 10 more random variables, examine them, so on and so forth until it runs throug...
The photo below is an example of the result i would like to obtain using the test which i cannot find in the article itself, i was hoping maybe any of you would know. I have tried to carry out chi square test for goodness of fit but what i really want is to able to compare BP between two groups (men vs. women). Would a...
I am programming an ARIMA model. The MA part of the model uses past forecast errors. How do I calculate these errors? Should I use any other model?
I want to estimate parameters of VARMA model using maximum likelihood estimation using real data. The problem I face with is that I don't know how to set the initial values for the parameters. I tried to choose randomly but the objective function is always undefined at initial point. Please, is there any theory about...
Suppose that data X have a Normal distribution with some mean $\mu$ and some variance $\sigma^2$. However, you don't get to see X. Instead, you see $Y = g(X)$ where $g$ is a known function. Assume that $g$ is complicated and is not invertible. How do you write the likelihood function for $Y$? Or how do you use so...
I know how to perform PCA (principal component analysis), but I would like to know steps that should be used for factor analysis. To perform PCA, let us consider some matrix $A$, for instance: 3 1 -1 2 4 0 4 -2 -5 11 22 20 I have calculated its correlation ...
$$ Y_i = \sum_j B_{ij} X_j$$ $$ covar(X_i, X_j) = V_X = \delta_{ij} var(X_i)^2 $$ $$ covar(B_{ij},B_{kl}) \neq 0 $$ $$ V_Y = ? $$ I know, that if $B$ was fixed, it is straight forward, but I would like to generalize it. I managed only by inventing some notation myself, which a physicist should not do I guess. I will ch...
I've just began looking into survival analyses, and I'm having some difficulty interpreting the results. I have a model linear regression model where time ~ x1 * x2 * x3... x9, this model seems to fit well (adjusted R${^2}$ of ~0.9) however it was suggested that survival analyses may be a better direction. I have trie...
Let $U$ be a random variable uniformly distributed over (0,1). Compute the conditional distribution of U given that $U>a$ The solution says: $P(U > s | U > t) = \frac{P(U > s)}{P(U > t)}$ Here I'm confused why the conditional probability translates into the fraction on the right hand side. $P(U > s | U > t) = \frac{P(...
I have a problem considering the length of the y-axis in a LOWESS plot in Stata. The y variable ranges from 0 to 50. I would like to run the LOWESS on all the data but only display the graph for the range of y from 30 to 50. I've searched throughout the net, but I just found that I would also have to restrict the data ...
I'm using a Johansen cointegration test to check for cointegration among a large number of time series. I've found that while the eigenvectors look great in-sample, the cointegrating relationships often don't hold up out of sample. However, if I manually "regularize" the eigenvectors by setting the smaller weights to z...
My situation: small sample size: 116 binary outcome variable long list of explanatory variables: 44 explanatory variables did not come from the top of my head; their choice was based on the literature. Statistical test chosen: logistic regression I need to find the variables that best explain variations in the outcom...
$X$ has MGF $m_{x}(t)=e^{2t}$ for any $t \in \mathbb{R}$. What is the distribution of $X$? My instructor went about it like this: $m_{x}(t)=E(e^{xt})=Ee^{2t}+e^{2t}$ Here I am really confused, how did $E(e^{xt})$ become what's on the right hand side of the equation? I wonder if I copied it down wrong...but can someone ...
Social science PhD student here looking for a little help. I set out to collect around 300 online surveys for a study, but ended up with over 4,000. At that sample size should I sub-sample my results because it's more likely that significant results will be found because of the sample size? Thanks.
i have data that includes clicks, spend, signups and date. for 1 week, i turn off advertising spend to see what clicks and signups are. the next week, i turn advertising back on to see what the new clicks or signups are. Given this 2 sets of data, how can i run regression analysis to see how impactful advertising is? ...
One of properties of PCA states that the sum of the variances of the principal components is equal to the sum of the variances of the explanatory variables. I wonder how to interpret this as I've always thought that we do not consider $X$'s as random variables. I'm quite new to probability theory and I need to get it s...
I've read a lot about Cross Validation to estimate prediction error, specifically for selecting the number of components in a PCA model (I'm not doing SVD/PCA, but it's very similar), but I can't find much literature on using CV for really, really large sparse data. Could anyone help me out with paper links, personal e...
The quantile regression is defined through the optimization approach. But I am not clear how does the function of $\rho_{\tau}(u)$ related to the $\tau$-th quantile. Or in other words, how to derive the equation of the $\tau$-th sample quantile $=argmin \sum\rho_{\tau}$
I want to test the presence of an interaction term in a logistic regression with glm(). The formula is: Gest.hypertension ~ ART.conc + Parity + Age + Smoke + Nulliparity + Syst.disease.type With Age the only continuous variable and the others categorical. The interaction term is ART.conc (2 leves) x Parity (3 levels)...
I have a data set of 1000 records. Each record has three dependent variables $y_1, y_2, y_3$ and 100 independent variables $x_1,...,x_{100}$, where the dependent variable $y_i$ satisfies: $0\le y_i \le1$ $y_1 + y_2 + y_3 =1$ I.e. $y_i$ represent the probability of a observation belonging to one of the three classes. ...
Just wanted your opinion on whether you think its appropriate to have a 2nd hypothesis when you have included in your study a secondary outcome? And also do you think its appropriate to have more than one secondary outcome? I believe it should be fine but wanted to double check with you guys.
Let {$X_1$, ..., $X_n$} be a random sample of size n in which the different elements are measurements drawn from $m$ different populations with different distributions. From the Central Limit Theorem, as long as $n \gg m$ and $n \to \infty$, the values of $\bar{X}$ obtained by repeating this experiment will follow a n...
$$F_X(x)=\begin{cases} \quad\dfrac{\alpha}{\alpha+\theta}\left(\dfrac x\omega \right)^\theta &\text{ if } x<\omega \\ \\ 1-\dfrac{\theta}{\alpha+\theta}\left(\dfrac\omega x\right)^{\alpha} &\text{ if } x>\omega \end{cases}\quad\text{ where } 0\le x< +\infty.$$ I derived it by having $F_{X|Y}(x|y)=\left(\dfrac{x}{y}\ri...
Currently we have a linear model which includes 3 independent variables and the dependent variable "Y" which is the predicted values (range from -0.5 to 2000) from the model. Now we want to leverage the same model by just removing one of the predictor (lets call that as X1). One of my colleague suggested to run a mode...
When there is a perfect collinearity among more than two continuous variables, how do you deal with it and how are the regression results interpreted? I have three independent variables which represent the percentage of different races within different cities, Say $x_1$ is the percentage of Hispanics, $x_2$ is the per...
I understand this question has been asked many times however, i am unable to understand the answers well enough and apply to my situation. I have attached 2 screenshots of my model. There are 5 class labels Firstly this is a model with a lower accuracy but with a higher ROC area. Then i have a model with a higher ac...
I have a mixed/random effects model $$\mathbf{y}_i=\mathbf{X}_i\boldsymbol\beta+\mathbf{Z}_i\mathbf b_i+\boldsymbol\epsilon_i,$$ where random effects $\mathbf b_i$ has variance-covariance matrix $$D=\text{cov}(\mathbf b_i)=\left(\begin{array}{cc} \sigma_{1}^{2} & \sigma_{12}\\ \sigma_{12} & \sigma_{2}^{2} \end{array}\...
Representing causality using fuzzy cognitive maps presents a cognitive model which is a graphical model consisting of weighted directed graph. To me it looks like a state transition machine. Can somebody explain the difference between causal map and markov chain? Thank you
So I am working on a problem where I want to extract a set of LDA topics from one corpus, and then compare the distribution of those topics in other corpora. So basically I want to lock-in the topics and then get a sense of how similar or different another corpus is from the original corpus. I was hoping that someone c...
Suppose I have two discrete independant random variables $X$ and $Y$, and that I'm interested in the expected value of the random variable $W$, where: $$ W= \text{sign}(X-Y). $$ So, W is 1 if $X>Y$, -1 if $Y>X$ and 0 otherwise. I sample the distributions of $X$ and $Y$ ten times each, giving me $\{X_1, \dots, X_{10}\...
I am trying to do a regression on heteroscedastic data where I'm trying to predict the error variances as well as the mean values in terms of a linear model. Something like this: $$\begin{align}\\ y\left(x,t\right) &= \bar{y}\left(x,t\right)+\xi\left(x,t\right),\\ \xi\left(x,t\right) &\sim N\left(0,\sigma\left(x,t\righ...
I've created a basic Neural Network that learns from basic information and can verify whether or not a piece of information matches it's parameters from a match percentage. Conceptually however, I haven't been able to think of or find anything on google about actually compiling something new. For instance, if I where t...
I've a small query and really confused as how to solve such problems. $n$ people are question about internet connection 87 of them have high speed connection. We are given confidence interval(CI) of population proportion is $0.119 < p < 0.1771$. I found the mid-point of CI as 0.145. I need to understand how to find $n...
The web is estimated to have approx 5 billion web pages ( http://www.worldwidewebsize.com/ ). How would you go about estimating a CDF to know how many pages are required that make up, say, 90% of traffic? I'm trying to apply Zipf's law but I'm not sure how to do it. Of course, Zipf's law requires a parameter. I'd li...
How efficient it is to build predictive model. However, every crime is dependent on three factors: Time, Spatial Location and people behavior. Statistically, we can't measure people behavior (we can't use these private data). Hard to find good and accurate results using spatial-location/time-series predictive systems....
It is the second part that I am having troubles with. I've tried Y from x to x+u and X from 0 to 1: didn't work ! So what are the correct limits in this case(that give you the required answer) ?
This question is completely theoretical in the sense that I don't have any real data. Suppose I am designing a study, in which I will go measure N pairs of (X,Y), then the goal is to build a predictive model (say linear regression) between X and Y. i.e. I want good predictive accuracy, but it will also be good to have ...
I'm trying to find the optimal threshold point from a ROC curve. I have two main constraints : tpr >=80 and fpr <=60. I tried three main minimization functions : #where, tpr=True positive rate and fpr = false +ve rate dis= math.sqrt(math.pow((1-arr[1]), 2) + math.pow((0-arr[0]), 2)) dis= math.pow((1-arr[1]), 2) - mat...
I would like to know how to calculate the standard deviation for a measurement value $x$ when there are two separate sources of uncertainty, 1 and 2, each with known standard deviation, $\sigma_1$ and $\sigma_2$. I’ll give a couple of examples. I measure length with a ruler. Each measurement has an uncertainty ($\sigm...
I have what I believe are an interesting QQ plot of the residuals of some sports data fitted using Poisson regression. My model is actually a live model to predict the number of remaining events in the game (basketball, soccer etc) from a set of explanatory variables. It looks also very much like the data is Poisson di...
I am a new entry in statistical field with lots of interest in this area. I would like to know any statistical book which can enhance my statistical knowledge meaning; wish to know the name of the book which can help me in model prediction....for eg. detailed explanation and steps of regression (incl multiple, logistic...
What I want is to calculate the probability of a minimum number of rolls with a minimum value for at given number of dice, e.g. "if I roll 20 dice, what is the probability of getting at least 3 dice with a value of 5 or more?" I have a brute force setup, that creates the Cartesian product and just enumerates through th...
I have two time series: (1) daily mean water temperature from 1988 to 2014 and (2) daily mean air temperature from 1968 to 2010. The water temperature time series has missing data, occurring on individual days and for periods of consecutive days (e.g., data for all of 1993 is missing). The air temperature data has data...
On wiki page about Fisher transformation I read that variance of sample correlation coefficient becomes smaller as population correlation coefficient (in absolute value) gets closer to 1. Could anybody, please explain why this happens? Thanks a lot for any relevant formulas or intuitive explanations!
For feature selection, permutation tests are biased in favor of those categorical variables with a large number of levels [White1994]. Besides, it has been proposed [Deng2011] that partial permutations can be used to increase efficiency. However, can partial permutations also solve the bias problem?
I am using logistic regression to benchmark the performance of some students in different years. I created a scenario as below: mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv") benchmark.data <- mydata[1:300,] # students form year 1990-1995 as benchmark compare.data <- mydata[301:400,] #...
We are trying to figure out an intuitive reasoning behind integrate out the unobserved random effect. The specific formula is: $$f\left(y_i|x_i;\beta, \sigma_c\right)=\int_{-\infty}^{+\infty}\left(\prod_{i=1}^{T}f_t(y_{it}|x_{it};c,\beta)\right)(1/\sigma_c)\phi(c/\sigma_c)~\mathrm dc. $$ I think we get most of the idea...
I have an area divided into grids. I'm looking for a method to determine statistically, if the occurence of criminal incidents for two time periods is significant equal. I have two datasets with equal periods and grid locations. The target values are only assigned to a specific time period. TARGET = 0 -> No incident, ...
Suppose a model, $$x_{i} \sim N(\theta_{i}, \phi), \text{ for } i=1,\ldots,n$$ Furthermore, suppose the variance parameter, $\phi$, is some known constant. The multidimensional Jeffreys prior is defined as, $$\pi(\vec{\theta}) \propto \sqrt{\text{det}I(\vec{\theta})}$$ where $\text{det}I(\vec{\theta)}$ is the determina...
I have a dataset consists of 5 features : A, B, C, D, E. They are all numeric values. Instead of doing a density-based clustering, what I want to do is to cluster the data in a decision-tree-like manner. The approach I mean is something like this: The algorithm may divide the data into X initial clusters based on featu...
The solution to the problem: $$ \min_{m} \; E[|m-X|] $$ is well known to be the median of $X$, but what does the loss function look like for other percentiles? Ex: the 25th percentile of X is the solution to: $$ \min_{m} \; E[ L(m,X) ] $$ What is $L$ in this case?
Given a sample X of size n from a normal distribution $N(\mu,\sigma)$ one can estimate $\sigma$ by $\hat{\sigma}$ from X. Then we know that: $p(\sigma|\hat{\sigma},n)\propto\hat{\sigma}\sqrt{\frac{n-1}{\chi^2(\nu=n-1)}}$ Now I am looking for the likelihood function: $p(\hat{\sigma}|\sigma,n)$. Is there an analytic solu...
I have a question regarding if there are any stationarity requirements for a regression tree. If I were to regress 2 share prices on each other (normal linear regression), it would be classified as spurious regression due to the non-stationarity of the data ((stochastic) trend in the share prices). So in order to corre...
There are many algorithms/applications that aim to learn the hyper parameters i.e. the parameters of a prior distribution from the observed data. A typical algorithm works in an iterative function where we optimise some cost function for a given set of hyper parameter values and then the next step is to update the hype...
In one of my experiments for measuring the performance of a specific type of software I measure the execution time and memory usage. Now I know that measuring these things can be extremely problematic since the operating system interferes with how the program is run and other programs/processes can be run during the ex...
I have roughly 15 variables / attributes characterizing 6k customers in my data set. As they are categorical I have transformed them into 1 attribute for each possible value (1-out-of-K coding). An example could be Region with values "A", "B" and "C", which is transformed into 3 variables: Region_A, Region_B and Region...
I have read that least angle regression is good for high dimensional data. I didn't actually understand the meaning of high dimensional data, so does this mean $p>>n$ case? And does anyone know any good dataset with such properties on which we can compare the performance of lars with say least squares?
I have simulation data from 1000 runs, plotting some measurable (in this case convergence of the algorithm) as a function of simulation time. Each run produces a discrete set of points (t, f(t)) and the superimposed image of all the runs looks like: Clearly there is some structure here. How can I generate a curve that...
Let's assume I have a simple cointegrating regression of the type $$y_t=\beta_0+\beta_1x_t+\varepsilon_t$$ $y,x$ are $I(1)$. If testing the OLS residuals I find that $y$ and $x$ are cointegrated, how can I perform tests on the coefficients? Are the two estimators distributed as a usual t-student? Which critical values...
I have a time series with a level shift. Thus, when treating it with an ARIMA model, I use arima(1,0,0)+xreg. The xreg is a dummy variable for the level shift. And then I use linear regression: $$ y(t)=β_0 + β_1y(t-1) + β_3{\rm levelshift} + μ(t), $$ where ${\rm levelshift}$ is the same as xreg in ARIMA. I think these...
This is a great example of the instrumental variable estimator: https://www.youtube.com/watch?v=NLgB2WGGKUw In our course however they stay really vague about examples, and to be honest, we really doubt it's use (certainly after reading some Taleb books). Do you know other examples that can convince us of the usefulnes...
How can I obtain a p-value for a main effect in a 2x2 design? I have 12 participants and 2 independent condition categories which I represent by letter, and case. That means my conditions are A, a, B, b. All 12 participants take part in: Case Letter A a B b Thus, my data could be: participant meas...
Wondering what the difference is between rel error (relative error) and xerror (apparent error) in regression trees? I am using the rpart package and the output returns these metrics cross-validated over the number of splits. Anyone know the difference between these two quantities or perhaps even the formulas?
I have a list of diseases for my research. For each disease, I have a list of ages for the diseases. "Breast Carcinoma" may be a list of [1,2,2,3,4,5,5,5,5,5] while "Adrenal Cortex Neoplasms" maybe be a different list with a thousand elements, BUT with the same general shape in a bincount (high number of 5s, a few 2s)....
I posted this same question on Stack Overflow. I use least squares regression of data with measured errors in both x and y and use the reduced chi-square (mean square weighted deviation: mswd) as a measure of the fit. However, some of the assumptions for using reduced chi-squared likely are not met and I'd like to mo...
I am running simulations to compare different weighting methods to estimate the mean of y (with missing values). I use bias, RMSE and 95% CI Coverage as my performance metrics. However, looking at RMSE and coverage, I arrive at different conclusions. For example, for method A and B, bias(x10^3) are 75 and -134 respecti...
I am studying out of DeGroot and Schervish trying to carefully understand the math of prob/stats. In ch 4.3 on variance, they state the theorem that given X a RV whose mean and var exist, then Var(X) = 0 iff X is a constant. The theorem itself is simple to understand: I am trying to get a firm grasp on how to prove it...
Wikipedia has the following table for computing sample sizes:                                                           The table was generated for the following targets: Significance level of 0.05. Statistical power Cohen's d (i.e. the effect size) How does one compute this table? For a given input (desired $\alpha...
What is the difference between vector error correction model and UVECM? Which one is better to use for a 30 years time series data (to study long term and short term relationship) which has some missing values?
In the Coursera NLP course , Dan Jurafsky calculates the following perplexity: Operator(1 in 4) Sales(1 in 4) Technical Support(1 in 4) 30,000 names(1 in 120,000 each) He says the Perplexity is 53. The lecture can be found here: https://youtu.be/b6nwdc_fGfA @ 8:40. I've been trying to figure out how it's calculated b...
I am building a path model which links different psychological constructs. This is the replication of a model I have previously tested in another sample. The model fits the data well. When however I try to add an additional variable as covariate on the DV (i.e., a variable with an arrow pointed to the DV) the model do...
In the collapsed Gibbs sampling version of LDA, the posterior distribution of topic assignments for each word is sampled. From what I have read (e.g. http://people.cs.umass.edu/~wallach/courses/s11/cmpsci791ss/readings/griffiths02gibbs.pdf) it looks like people just implement the Gibbs sampling procedure by letting it...
I'm looking for a dataset on which a diffusion kernel (also called heat kernel), used via SVM, would get better accuracy than other kernels for the classification task. I want to use such a dataset to make sure my implementation of the diffusion kernel is working, and to get a better understanding of the diffusion kern...
So the formula for AIC is: AIC = 2k - 2ln(L) L is the maximized value of the likelihood function. I'm modeling oxygen data in R using Non-Linear Minimization (nlm) of a maximum likelihood estimation (mle). By using the minimum command it produces the value of the estimated minimum of the function. This seems to be a r...
just wondering - is it possible to calculate Czuprow's coefficient of the convergence in R package? if so, is there some dedicated package for that purpose? thanks in advance
For a continuous outcome being analyzed using GEE with a linear link, you have assurance that standard errors and point estimates are consistent with a first order trend regardless of distribution of outcome, heteroscedasticity, and mild non-linearity problems. Point estimates from the GEE are the same as those obtaine...
What parameters should one pre-specify before designing/running an experiment? (e.g. a two-sample, one-side, t-test) My understanding is that on establishes: Null hypothesis Maximum Significance level Minimum Power Minimum Effect size Is the choice of maximum/minimum in the lines above correct? Is it correct to say ...
I ran an experiment with two factors each with two levels, 5 replicates each combination and one response variable. My data are non-normal and heterocedastic. Transformations didn't help. I ran a permutation ANOVA (aovp - package lmperm - R), but I am not sure this is the right way to go and I don't know what to do abo...
I am attempting to analyze biological data, to see whether the number of events in a given time interval is more/less than expected based on the overall frequency. How would one approach this? An example of how I would frame this: Out of 100 ms, 16/44 events occur in 15 ms, and 28/44 events occur in the remaining 85 m...
I am curious that why in CFA model, observed measures operate as dependent variables. In my understanding, observed measures served as data point that estimating other parameters, such as latent variables and errors. Thanks,
in the formula for t test, t = (mean1 - mean2)/sqrt[(var1 + var2)/N] is N the total number of subjects in both groups being compared or the number of subjects in each group or condition? df = N-2 is N the total number of subjects in both groups being compared or the number of subjects in each group or condition?
I have a PMF of some discrete distribution that has been numerically computed. Note that I do not have any samples to work with here, so techniques like Maximum-Likelihood and Expectation-Maximization don't apply. I only have the PMF of the discrete distribution itself, which is simply a long, nonnegative vector whose ...
I have some questions about penalized Bayesian quantile regression with LASSO and adaptive LASSO penalty: Would you give me a detailed outline for the formula, especially as used in Bayesian inference? What package in R is easy to use and suitable for this topic? Would you give me R code for running inference Bayesi...
In Doing Bayesian Data Analysis (link to the book) and Bayesian Estimation Supersedes the t-Test, J. Kruschke proposes using the following criterion to reject or accept the null hypothesis in a location experiment: Accept null hypothesis if the 95% HDI falls completely inside the ROPE Reject the null hypothesis if the...
Similar to this question, Under what conditions should Likert scales be used as ordinal or interval data?, I am curious under what conditions should/could Likert scales be used as nominal data?
When I work in R, every time I create a new variable I try to name it simple so that it iss easy to type like x1, x2, ... or a1, a2, ... Sometimes I use temporary variables with names temp, and again I continue making variables temp1, temp2, .... As a result finally I mess up everything to a point impossible to underst...
I'm trying to construct an error ellipsoid from a covariance matrix (which exists for a 3D point) and then sample consistent xyz points in this region. (This question succeeds this one.) What I'm currently doing is: 1) Calculate the Cholesky decomposition of the covariance matrix. 2) Sample each initial vertex point as...
I am having a lot of fun with regression analysis at the moment, and by fun I mean bashing myself repeatedly over the head. I have a set of 200 data points, by filtering on a property of interest, I end up with 153 points of use. I initially used these 153 points to generate a linear regression, with an excellent R${^...
I would like to apply a Stouffer (or Fisher) integration on a list of p-values or z-scores. However, some of them contain missing values, e.g. (R snippet): a <- c(0.05,NA,0.04) b <- c(0.03,0.13,0.01) What is in your opinion the best approach, in order to make the integrations of a and b comparable? Simply remove NA d...
Regression was estimated using OLS. We get y=a0 + a1x1 + a2x2 + error. We know covariance matrix ∑ of our estimator. How to get confidence interval for a1/a2 ratio? In what case would the confidence interval be bigger - if there is positive correlation between a1 and a2 or if there is no correlation? I have some fee...