instruction
stringlengths
9
38.7k
I have collected performance data at fixed time intervals from a 'shared system' with the aim of investigating the affect of the sharing on the performance of my 'slice' of the system. The performance as claimed should be consistent over time, the actions of the neighbors are unobserved apart from the affect on my perf...
I had asked this question on Mathoverflow.net and someone suggested that this might be a better forum. So here is the question again Hello, I have two n*n correlation matrices with values ranging between -1,1. (2 correlation matrix because I have the same n terms under 2 different conditions) Taking the absolute of the...
I need to determine whether or not there is always a unique root of the log-likelihood equation l'(x,0)=0 for different samples sizes of the Cauchy distribution. But I am unsure about how to actually define the log-likelihood function R and about actually being able to plot these graphs. Any advice would be appreciate...
For a stationary time series can I use the sample mean as an estimate for the time series mean? Also what is the recommended way to estimate the variance? The series is auto-correlated.
In my design I have 48 permanent plots in 3 summits (16 plots for each summit). Plots are grouped in clusters arranged in the cardinal direction (4 plots for cardinal direction = 16 plots) and grouped into summits (16 plots for summit x 3 summits = 48 plots). I have two observations of the response variable for each pl...
I am wondering how to best approximate the information value of a word $x$ in general human speech. By information value I literally mean its entropy: $H(X) = \mathbb{E}_{X} [I(x)] = -\sum_{x \in \mathbb{X}} p(x) \log p(x).$ with $p(x)$ the probability of the word $x$ occurring in general human speech (assuming nothin...
Suppose that I want to study the relationship between two variables $Y$ and $X$ using the linear model $Y \sim X$. Unfortunately, both $Y$ and $X$ are not normally distributed, say they are both skewed and have long right tails. So I'd do the trick of log-transforming both of them to make them look more like bell-shape...
Background: I am building a count data model with an abundancy of zeros. More precesely, I am trying to estimate the number of competitors that will enter a certain market. 70% of my data consists of zeros (no entries). So, I am trying to model using a Zero-Inflated Poisson (or Neg. Binomial) model instead of a Pois...
We are interested in determining whether there's an association between frequency of screening visits and cancer outcomes and whether that differs by race. We have Medicare data to analyze this. Typically, the knee jerk reflex for modeling survival times is that of Cox proportional hazards models, but the problem is th...
When splitting up my labeled data into training, validation and test sets, I have heard everything from 50/25/25 to 85/5/10. I am sure this depends on how you are going to use your model and how prone to overfitting your learning algorithm is. Is there a way to decide or is it all by rule of thumb? Even ELSII seems ...
I am new to this forum but have found several threads to be highly useful so am posing a question myself. My data was collected (fish length = factor, fish mercury = response) from several rivers over several years for the purpose of environmental (mercury) monitoring. What I would like to do is, using the data I have...
Suppose there is an experiment that in each trial returns a two vector of probabilities of size $n$. In each trial I select uniformly a number from ${1,\cdots, n}$ and compare that element in this two vectors. I want to see if in a large number of trials, that randomly selected element of first vector is greater than t...
If there are two samples from a distribution whose form is not known, and which is certainly not normal, how can one ascertain the probability that, by random chance, their means/medians are dissimilar? In other words, is there a t-test equivalent for samples coming from a distribution of unknown form?
I have 37 features in my dataset. I used Boruta package in R and according to its analysis, all the features are "important" and should be retained. I examined this result of Boruta and found that if I exclude any feature from my dataset, then I am losing accuracy of my Random Forest classifier. However, when I am plo...
If I have 5 binary variables with values for 100 observations to give me a 5x100 matrix. y1 y2 .... y100 x1 0 1 .... 1 x2 0 0 .... 0 x3 1 0 .... 0 x4 1 1 .... 1 x5 0 0 .... 0 I want to put the observations into fairly homogeneous groups based on their values from x1 to x5. I can try PCA. However, fa...
I am trying to to run a logistic regression (case-control) and the variable of interest is categorical, taking the values 0 to 6. For a subset of individuals, I do not have the exact value (0, 1 .. or 6) but a probability distribution : P(V=0)=0.03 P(V=1)=0.2 .. P(V=6) = 0.3 I need an unbiased estimate of the OR and co...
Lehmann and Romano show in their Th 3.7.1 (Lehmann and Romano 2005, p81) when a UMP equivalence test $\phi_1$ exists and that it has a power that is maximised at some point $\theta^\star$ inside the equivalence region $[\theta_1, \theta_2]$. Now suppose we have a second test $\phi_2$ that only differs in the upper poin...
I was reading Wikipedia's article on linear regression and I realized that I don't quite get the same result for the normal equation: $$\beta = (X^{T}X)^{-1}X^{T}{\bf{y}} = (\frac{1}{n}\sum {\bf{x}}_{i}{\bf{x}}_{i}^{T})^{-1}(\frac{1}{n}\sum {\bf{x}}_{i}{{y}}_{i})$$ where: $${\bf{y}}=\begin{pmatrix}y_{1}\\y_{2}\\ ...\\ ...
I'm compiling some data for econometrics research. $Y$ is the dependent variable, which is a probability index (the Simpson Biological Diversity index): \begin{equation}D = 1- \sum \frac{n\cdot (n-1)}{N(N-1)}\end{equation} and is bound by the range [0,1] $X$ is the independent variable, which is the proportion of a p...
I want to know if I need to use ARCH/GARCH model for my time series. How can I use McLeod.Li.test in R to do that and how should I interpret the result? the description in R help was not clear for me because in the example of the R help they used difference of the log of the time series and I do not know why? Also, how...
I'm struggling with a proof of the normal equation, so I posted a question which hopefully will get resolved soon. However, I mentioned there that I'm uncomfortable with the proofs dealing with matrix calculus, particularly when it comes to derivatives of product of vectors or product of matrices and vectors. Furtherm...
I have $n$ realisations $s_1,\, \dots , s_n$ of random variables $S_1,\, \dots, S_n$ which are assumed to be i.i.d. with unknown distribution. These measure the time between events. I want to calculate the probability that the data can be modelled by a renewal process: $(X_t)_{t\geq0}$ where $X_t$ is the total number o...
I am attempting to forecast "peak" values. I have a weekly data set ~10 years. I have weather metrics as explanatory variables. I am trying to produce a model that can accurately predict the peaks of the weekly data using the weather metrics. The peaks are not entirely accurate, should I be using another approach? I am...
More of a literacy question that stats, but I'm looking for correct terminology and the Google machine hasn't thrown anything up. You have explanatory data and observed data for 2000-2010. You have only explanatory variables for 1990-2000. You want to estimate the X for the years 1990-2000, are you forecasting? Estimat...
Canonical correlation analysis (CCA) aims to maximize the usual Pearson product-moment correlation (i.e. linear correlation coefficient) of the linear combinations of the two data sets. Now, consider the fact that this correlation coefficient only measures linear associations - this is the very reason why we also use, ...
I am experiencing a very peculiar problem in STATA. I have a panel dataset with 8000 groups and 4 million observations. I want to run a fixed effects panel binary logistic regression (xtlogit). As you can read in my original question, STATA's maximization algorithm cannot compute a solution when using xtlogit. I have r...
I am having difficulty interpreting the results of a colleague. I don't know much about ANOVA other than it is a regression from classifications to floating point numbers. From reading Gotelli's Ecological Statistics book, I have figured out more or less that the F-ratio is a step in getting the P value. The P value in...
could anybody define what is meant by stochastic drift? I think I have a rough idea, say on a random walk X(n)= a + X(n-1) + Z(n) where Z(n) are iid zero mean and constant variance, then E[X(n)] = na. Is this stochastic drift? Many thanks
I have been trying to understand a method of finding parameter uncertainties resulting from maximum likelihood estimation. Unfortunately the document I have is not in the public domain however I have found what I think is exactly the same method used in a paper from medicine. Having found it somewhere else has made me ...
I want to learn the statistics package gretl. My first attempt to do so is to calculate a linear regression model of a set of data: $$y_i = \alpha + \beta x_i + u_i$$ First I want to create a crossplot of the data and then calculate the variance of the residuals $s^2_u$ and also those of $\alpha$ and $\beta$. My questi...
The sample mean is the maximum likelihood estimator of $\mu$ for a normal distribution $\text{Normal}(\mu,\sigma)$. The sample median is the maximum likelihood estimator of $m$ for a Laplace distribution $\text{Laplace}(m,s)$ (also called the double exponential distribution). Does a distribution exist with a location ...
Normally you have a beta distribution with shape parameters $a$ and $b$. The mean of this distribution is $a / (a + b)$ and the sample size, or the confidence (or K) is $a + b$. Now, if you do some trials, with let's say N positive outcomes and M negative outcomes, you end up with a posterior distribution that is $\tex...
I'd like to ask if someone could help me with the following problem: we have measured the same sample 5 times and we would like to check if there are significant differences in mean and stdev values if we use: All 5 datapoints Only the last 4 datapoints Only the last 3 datapoints We have performed ANOVA analysis but ...
I've read that for the Maximal Margin Classifier SVM, after solving the dual problem, most of the lagrange multipliers turn out to be zeros. Only the ones corresponding to the support vectors turn out to be positive. Why is that?
I've got 36 months of timeseries data, and eyeballing it, it has a linear trend upward. I wanted to do a little more than just eyeball it though. So I put together a correlogram of autocorrelation values for lags 1 to 12 on my observations. They're all positive. Would you say that's good evidence that I've got a linear...
Suppose we have two samples of a variable taken under different conditions: e.g. A1 without medical treatment and A2 after medical treatment. These are not necessarily normally distributed. Suppose A1 ranges from 0 to 10 and A2 ranges -2 to 15. Now how do I test for the significance of these range increases? Any though...
The survival package in R appears to focus on continuous time survival models. I am interested in estimating a discrete time version of a proportional hazard model, the complementary log-log model. I have a fairly straightforward survival model, with simple right censoring. I know that one way to estimate this model is...
I am looking at ways to forecast monthly time series data over a larger geographic region. I have time series weather data (e.g., temperature, precipitation) from multiple stations, and the stations are at certain proximity to each other. In the data set, temperature has slightly increasing trend while precipitation do...
I have a query regarding multiple linear regression. Let us assume that I have 3 predictor variables with a linear relationship between them as follows: c = a + b On inspection, I find that a,b,c are significantly correlated with each other. Is it appropriate to construct a multiple linear regression with a,b,c in i...
I have learned about repeated measures ANOVA but is it possible to have a repeated measures factorial design? So if you have factor A with 2 levels and factor B with 2 levels where each combination has 2 units and each unit is measured three times. Is there another name for this design? Would there be a total of 23 deg...
Can the clusplot graph still be used as a 2D representation of the cluster results if the first two components only explain ~50% of the total variance. Also, is it true that the points lying on the boundary of each cluster ellipse is a potential outlier for cluster. Using this graph for example, even if the first 2 PC...
I do not know what calculation/formula to use to show that something is an independent risk factor. E.g., in a cohort study: Group A (n=1000) - exposure to X - outcome exposed 70/1000 demonstrate Z Group B (n = 1000) - no exposure -- outcome control 23/1000 demonstrate Z However, of Group A 750 also exposed to Y -- 60 ...
I have two waterbodies that were sampled for a single water quality variable over time. Both waterbodies were sampled in the fall of each year from 2009-2012. In each year of sampling, 5 replicate samples were taken (so I would have 20 samples in total for each waterbody). I want to compare the two waterbodies over tim...
Suppose we have a regression model that measures college Grade Point Averages. The variables that we are using are hsize (the size of the graduating class in hundreds), hsize squared, sat (SAT Scores), female, and athlete. After estimating for the model using STATA, athletes had a coefficient of .1693, with a T value o...
I have some confusion related to Kruskal wallis test. I have an example lets say X=[2 2 35 10 9 8 11 12]; Y=[1 1 1 2 2 2 2 2]; Y is the group variable Now when I ran the kruskalwallis test p = kruskalwallis(X,Y,'off') I got p values of around 0.4. I was assuming the Kruskal wallis test takes the median. So it should ...
Hypothetical Scenario: A few continuous variables, each measured repeatedly at, say 12 time points, each with say, 150 observations. There are small fluctuations from one time point to another (i.e. change is not that smooth), but the variables are showing overall time-related changes. Question: What are different opt...
Given records for a team in 2 semesters Fall and Spring. We want to check if there is a relationship between the semester "Fall or Spring" and result "win or loss". Can chi-square test be used? Example of data Fall , Spring win , loss win , loss win , loss win , win win, win loss, loss loss, win loss, loss Many th...
My stata regression currently has the female variable, but I want to test whether gender matters on another variable or not. How would I go about creating the male variable? Or do I even need it? Will dropping the female variable work as well?
I am writing an exploratory paper considering an argument that a certain reaction that can arise in the viewing of art can serve as an empirical indicator that another particular cognitive process has occurred within their experience (in this case that one has changed some component of their own self-conception). (for ...
I have administered an instrument (4 subscales, total items 32, no. of items in each subscale 12, 7, 9 & 4) three times over an year. I have worked out the factor scores. I am not sure if I should compare means or go GENERAL LiNEAR MODEL, then REPEATED MEASURE. I need to know which way to go and why, also the steps in ...
I've seen in a kaggle challenge about digit recognition someone who used PCA before decision tree or other techniques. I thought it was just for compressing data but he aimed to improve his score. How can PCA improve score in this case ? Is it because there is less overfitting ?
All my predictors are binary in nature. So far I have been building the model with the logistic fuction. Could anyone suggest any appropriate statistical technique keeping the following points in mind: Dependent variable - binary All Independent variables - binary Response rate - On the l...
Suppose $U_{(1)} , \dots , U_{(n)}$ is order statistics a random sample from $U(0,1)$.how can find joint Probability density function limit distribution of statistics $T_n=(nU_{(1)},nU_{(2)}).$
I've been working with PyMC for a bit, and am stuck on this one. I see example on fitting time series, in the tutorial and others like: http://lighthouseinthesky.blogspot.com/2011/10/curve-fitting-part-5-pymc.html and http://healthyalgorithms.com/2010/10/19/mcmc-in-python-how-to-stick-a-statistical-model-on-a-system-d...
Having a random variable $X$ with a given density function $f_{X} : [a .. b] \rightarrow\mathcal{R}_{+}$ and a point c, $c \in [a .. b]$ I am curious if the following problem has a solution: Find two independent random variables $X_1$ and $X_2$ such that $X = X_1 + X_2$ with the additional property that the density of ...
I'm curious if it's possible to predict the results of a pairwise comparison matrix that will be sent out to 100 people based on the results of one or two filled out surveys? The matrix has the following format: Indicators Var_1 Var_2 ..... Var_n Var_1 NA Var_2 NA ..... ...
my question is related to ARCH LM test. Actually I have quarterly CPI data for Pakistan with base 2005. I have converted it into Y-O-Y growth rate by taking log difference and then made it stationary. when I apply ARCH LM test on raw data it shows significant results but when I apply it on differenced data, this test b...
I have trained an linear SVM which takes a pair of objects, computes features and is expected to learn a semantic similarity function between objects(we can say that it predicts whether the two objects are similar enough that they should be merged or not). The problem I am facing is that the predictions can be from $-\...
This is the formula I'm using Call: lm(formula = kg ~ ft * temp) and the coefficients coef(fit) (Intercept) ft temp ft:temp 3.02787289439677e+03 -7.68497422047300e-02 -9.10978930930598e+00 9.14330790288404e-05 Now I need this formula and the coefficients...
For a probabilistic multi-class classifier we can get probabilities of membership of a new point $x$ to each class $y_i$; in case of 3 classes suppose that we get $P(y_a|x) > P(y_b|x) > P(y_c|x)$, thus the most probable class of x is $y_a$. Now suppose that we have a multi-class svm where we can get scores of membershi...
Say I have a very large sample of observations, like a thousand of them, and I want to do (multiple) linear regression on them, i.e., regressing the response variable on the predictors. Now instead of doing so, I would randomly sample a subset of that large sample (say half of it, or a third of it, or even a fourth) an...
I am working on an exploratory factor analysis of dichotomous items. I've found this post extremely helpful. However, Mplus seems to be a standard that journals in my field are expecting, and I would love to replicate Mplus results in R. I've gotten my results to come very close to Mplus, using the fa function on a p...
I'm using Dynamic Time Warping to match a "query" and a "template" curve and having reasonable success thus far, but I have some basic questions: I'm assessing a "match" by assessing whether the DTW result is less than some threshold value that I come up with heuristically. Is this the general approach to determining ...
I have a dataset that follows something between a power and exponential law. I'm not happy with the IQR method of detection of outliers because on small sets of data (<50-100), it does not give you an idea of the percentage of outliers that have been droped. I thought of an iterative method that would drop on each iter...
How can I derive the posterior distribution of a likelihood function $N({\bf{t}}|\phi(x)^{T}{\bf{w}}, \beta^{-1})$ and a prior $N({\bf{w}}|{\bf{m_{0}}}, \beta^{-1}{\bf{S_{0}}})Gam(\beta, a_{0},b_{0})$? I'd like to use something similar to the general relations for conditional distributions in the normal case: $$p(x|y)...
We wish do some statistical analysis on the relation between being an entrepreneur and drinking and are wondering if we can consider the data derived from a survey as ordinal in nature. And if we can rank them as such. The possible answers are as follows: No, I have never drunk alcohol No, I no longer drink Yes, but o...
When consulting, I often do my exploratory analysis and prototyping in R, and deliver results on the initial dataset to the client. The client wants to use the trained classifier in a production setting. For example, assume that the client wants to run 1000 records per day through the classifier. How should I deliver t...
Given $X_1...X_n$ i.i.d. Bernoulli R.V.s with parameter $\theta$, I found an UMVUE for $\tau(\theta)=\theta^2+\theta$ with Rao-Blackwellization. That process seemed fairly straight-forward to me, and I ended up with $\frac{T(n+T-2)}{n(n-1)}$, where T is the number of successes and n is the number of trials. Second, I c...
Is there some textbook or expository account showing that the definition of "unbiased test" bears the same sort of relation to "unbiased estimator" that interval estimation generally bears to confidence intervals? (One rejects $H_0 : \mu=\text{whatever}$ precisely if $\text{whatever}$ is not within a confidence inter...
I am trying to use Stata for the first time to calculate Spearman's Rank Correlation for differences in weight and hemoglobin between annual visits for a small dataset. Do I enter the differences with the negative sign directly or do I square the differences first?
I'm trying to write a program to detect water bubbles in heated oil. I've applied a canny edge detection filter to the image and the results look like the following: No bubbles: http://imageshack.us/photo/my-images/20/nobubbles.png/ Bubbles: http://imageshack.us/photo/my-images/35/swirlsg.png/ I'm trying to find a way ...
I know that R is not particularly helpful for analysing large datasets given that R loads all the data in memory whereas something like SAS does sequential analysis. That said, there are packages like bigmemory that allows users to perform large data analysis (statistical analysis) more efficiently in R. I wanted to kn...
I am performing simulations while measuring a quantity A which depends on the parameter B. I make N independent measurements of A for given values of B. I can then calculate the mean to get an estimation of what the real value of A is. My question is about the error. I can calculate the 95% confidence interval as 1.96x...
I've been working on review problems, and this one has me completely stumped. Let $X_1 ... X_{10}$ be a random sample from a $N(3,\sigma^2)$ distribution, where $\sigma^2$ is unknown. Using the likelihood ratio test, determine a 5%-level critical region test for $H_0 : \sigma^2 = 1 $ vs. $H_1 : \sigma^2 \neq 1$ (and, ...
I'v already known that there are several assumpations when using linear regression model. But I cannot understand why some of them exists. They are: independent errors normal distribution of errors homoscedasticity Why cannot I just simply use least square method without these assumptions ? I want to know how it affe...
Let's say we are given the following problem: Predict which clients are most likely to stop buying in our shop in next 3 months. For each client we know the month when one started to buy in our shop and additionally we have many behavioral features in monthly aggregates. The 'eldest' client has been buying for fifty ...
Suppose $X_1, \dots , X_n$ is a random sample from $f(x|\mu,\sigma)=\displaystyle\frac{1}{\sigma}\displaystyle e^{\displaystyle-\frac{x-\mu}{\sigma}}, x>\mu , \sigma>0$. How can calculate $\text{cov}(\bar{X_n},X_{(1)})$. Note: $X_{(1)}$ is first order statistics.
I am aware that the sum of two (or more) normally distributed Random Variables is not necessarily also normal. I do have questions regarding the special case where I have the following addition: For c $\in \mathbb R$, is c + N(0,a), where I add a normal Random Variable with mean zero and variance a to c, is then the su...
I am a bit confused with this. Independence - The response variables are independent. I only have a single response variable so OK? Or observations are independent of each other? E.g Auto Correlated Normality - The response variable is normally distributed. My response variable (Y) fails a number of normality tests, ...
I want to implement the EM algorithm manually and then compare it to the results of the normalmixEM of mixtools package. Of course, I would be happy if they both lead to the same results. The main reference is Geoffrey McLachlan (2000), Finite Mixture Models. I have a mixture density of two Gaussians, in general form, ...
I'm implementing various algorithms to estimated the best number of bins to use for histograms. Most of the ones I am implementing are described on the Wikipedia "Histogram" page in the section "Number of bins and width"*. I am stuck on a problem with Doane's formula: 1 + log(n) + log(1 + kurtosis(data) * sqrt(n / 6.))...
I am investigating the relationship between temperature fields obtained from numerical weather models and electricity demand. I am applying a PCA-based approach, i.e. I study the linear relationship between main temperature patterns/modes and main demand patterns/modes. Given that I am working on summer yearly demand, ...
I wish to simulate survival data for the following probabilistic model which will be analyzed using a Cox model: An exposure $X$ is modeled as binary having $X \sim_{iid} \mbox{Bernoulli}(p)$ where $p = \frac{1}{3}$. The hazard is a function of $X$ with: \begin{eqnarray} \log \left( \lambda(t|X=0) \right) &=& \beta_0\\...
I have a set of data and supposed to see if the linear model $$Y=\beta_0 + \beta_1 X_1 + \beta_2X_2 + \varepsilon$$ fits the data (mydata, using R) below is a scatter plot. > mydata=read.table(....) > pairs(mydata) I am not very good at interpreting scatter plots(yet). From the output, how can i tell whether the mo...
I am having difficulty determining the difference between the two statements.
The central limit theorem, as I understand it (engineer, non-statistician), says that the distribution comprised of means of some other reasonably behaved distributions converges to a normal distribution in the limit as sample size goes to infinity. Convolution (1d) between scalar values is shown here. The mean can be ...
I'm wondering if there is a good way to calculate the clustering criterion based on BIC formula, for a k-means output in R? I'm a bit confused as to how to calculate that BIC so that I can compare it with other clustering models. Currently I'm using the stats package implementation of k-means.
What are some of the well known statistical tests to measure goodness of fit of observed random variables to a poisson distribution? I know the Kolmogorov-Smirnov test is one such, are there any others out there?
The generalized hyperbolic distribution is said to have semi-heavy tails. I know, that heavy tails means, that the tails are not exponentially bounded, or it has heavier tails than the normal distribution. The german wikipedia connects this to the excess function and knows a medium-tailed distribution. I looked at goog...
I'm somehow stuck about the way I should verify regression models. For instance, an extremely over-simplified version of the Solow Growth Model might look like this: $$ growthrate = \beta_0 + \beta_1 savingsrate + u $$ So how can I make sure now that there is not only correlation, but causation in exactly that directio...
I have a binary sequence such as 11111011011110101100000000000100101011011111101111100000000000011010100000010000000011101111 Where clusters of mostly 1's are followed by a larger number of zeros, like in the picture below (black stands for 1): I would like to apply a technique (preferably in R or in Python) where I c...
The formula for calculating sample size in a two sided hypothesis on two proportions is: $$n_1\ge \frac{\left(Z_{1-\frac{\alpha}{2}}\cdot\frac{S_0}{S_1}+Z_{1-\beta}\right)^2S_1^2}{(p_1-p_2)^2}$$ I'm asked to explain why in one sided hypothesis instead of $Z_{1-\alpha/2}$ we have $Z_{1-\alpha}$, with regards to the diff...
I have got a question that What are the differences of the Student's T-Test, Kolmogorov-Smirnov Test (KS-Test), and the Mann-Whitney-Wilcoxon Test (MWW-Test)? In the case of the T-test, the null hypothesis is μ1 = μ2, indicating that the mean of feature values for class 1 is the same as the mean of the feature values f...
We have a data set that looks like a lognormal distribution when we plot it. We would like to convert/normalize the distribution into normal distribution and see what feature weight got enhanced. It there a way to do it in python/java/scala?
There is an easy way to test the linearity hypothesis for a simple regression model $y \sim {\cal N}(\alpha+\beta x,\sigma^2)$: calling $H_0$ this model, perform a test against the ANOVA model $H_1$ obtained by considering the (numeric) covariate $x$ as a (qualitative) factor. Of course this requires to have several va...
Hi all I'm trying to do one step ahead forecast. Lets say I have 1000 data and fit an ARIMA model with it and then I do a forecast for one period ahead. When I get more data I would like to forecast another step using the new data without having to reestimate all coefficients and so on... This is my code but for some r...
I 'm new to the CV and not very good at statistic:) I would much appreciate some help on a non parametric ANCOVA in R sm package. I do a pre post analysis on a set of pre/post variables of two groups (so group is a factor). The preand post variables are numeric values (measures) or ratios of numeric measures. The sm.a...
I've just started working with Bayesian models. My question is in the context of hierarchical Bayesian model. Suppose you have n models to train. However, some of these models are similar to each other in some sense and I could assume that they their parameters are drawn from the same prior distribution. Another subgro...
A survey is being administered in a resource intensive setting. A 2-phase study design will be implemented using cases and controls identified by a certain behavior (say, smoking) and they will be screened for SNP information on a number of biomarkers for disease associated with the negative health outcomes associated ...
Can anyone show me how to calculate the expected number of 95% confidence interval of a binomial distribution using R, such as $\text{Bin}(100,0.5)$.