instruction stringlengths 9 38.7k |
|---|
I am interested in using the R package MatchIt to preprocess my data as to obtain matched groups based on a predefined treatment variable. However I am facing a few issues.
The first issue is that my data contains many covariates (approximately 80) in addition to the treatment variable. Many of these covariates have m... |
What are the principles of Borrowing Strength?
What does it mean in terms of estimating parameters for hierarchical models?
Where can this information can be read from?
|
I have posted this question elsewhere--MSE-Meta, MSE, TCS, MetaOptimize. Previously, no one had given a solution. But now, here is a really excellent and comprehensive answer.
Universal approximation theorem states that "the standard multilayer feed-forward network with a single hidden layer, which contains finite numb... |
I have two normally-distributed independent random variables X and Y and I need to calculate its division Z.
As far as I understand the mean of Z is $\mu_Z = \frac{\mu_X}{\mu_Y}$, but I don't know how to calculate the Standard Deviation $\sigma_Z$.
Is $\sigma_Z = \frac{\sigma_X}{\sigma_Y}$?
|
I'm trying to implement a Support Vector Machine classifier in R and I have to solve the optimization problem using the quadprog R package which solves problems of the form :
$$min_b \frac{1}{2} b^tDb-d^tb$$
such that : $A^tb \geq b_0$
In my case :
$$
A^t = \left(\begin{array}
II\\
z^t
\end{array}\right)
$$
Where $z$ ... |
I'm trying to fit a (simple) linear regression using MZ twin data. The reason why mixed-effects are used here is just to correct for correlated responses from the twins.
The current model looks like this:
out.fit.1 <- lmer(outcome ~ cov1 + cov2 + cov3 + predictor + (1 | PairNumber ),
data = MZt... |
1. Which one is NOT a linear regression models? Please give a 1-2 sentences brief
explanation to your choice.
(a) $y_i = β_0 +\exp(β_1x_i)+E_i, i = 1, 2, \ldots, n$
(b) $y_i = β_0 + β_1x_i + β_2 x_{ii} + E_i , i = 1, 2, \ldots, n$
(c) $y_i =β_0\exp(x_i)+β_2x_i^7 +E_i, i=1, 2,\ldots, n$
2. Suppose $X$ and $Y$ has l... |
What is the difference of gaussian HMM and gaussian mixture HMM (the emission is gaussian or gaussian mixture)? I want to know if it is the same thing. What is the point when estimating the parameters using Baum Welch algorithm.
|
The separate function of SVM is :
$wx+b=0$
The function distance of support vector to the separate plane is :
$|r| = wx_i+b$
And we can normalize the $w$, then the distance can be write as :
$\frac{|r|}{|w|} = \frac{wx_i+b}{|w|}$
And then approximate $|r|$ by 1. So we should get the maximal $\frac{1}{|w|}$.
Actuari... |
I am trying to find the best way to visualize the following data:
I have values for 3 different times/dates, each time/date has the same 20 species. For each species I have the average height and standard deviation (that was obtained from n observations). I don't have the observations from where the average and standar... |
Part of my thesis tries to investigate the extent to which students "test Score" on the topic of electrical circuits in physic can be predicted from how they find the topic to be "interesting" ,Their "enjoyment" of the topic, and their perception of how "difficult" the topic is. I intend to use linear multiple regres... |
I have the following data,
These are the x and y values to find correlation
x=115778,171235,1
y_a=31920,49327,0
y_b=83858,121908,1
cor_a= 0.99947573036 // These are the correlation values using numpy (x,y_a)
cor_b= 0.999915675755 // (x,y_b)
test_statistic_a= 30.870014264 // test statistic value using formula
test... |
I was conducted one-way ANOVA analysis to examone the level of knowledge shaorng among the employees based on there age differences. One-way ANOVA indicated that there were significant differences in the level on KS while Tukey post-hoc test revealed that there were no statistically significant differences on the level... |
My data shows 95% CI = [-1.07, -0.40], what does the negative sign indicate and how do I interpret the data? as I think it is significant for not capturing the value of 0.
|
I am trying to test if there has been a significant change in the weight of two groups, one without exercise and one with exercise.
The two samples have large spread, which creates a standard deviation that is larger than the mean for each group.
My question is, is it still valid to use the unpaired t-test to compare... |
Let's say in an experiment, the Null hypothesis is patients having Condition $\alpha$ (type I error) is $0.05$ and $\beta$ (type II error) is $0.15$.
If I have a sample of 50 patients, 35 with condition A and 15 with condition B, how would I work out the following:
Probability of properly predicting the condition of ... |
The density of the GED distribution is given by
\begin{align}
GED(l;\mu,\beta,\nu)&=\frac{\nu \exp\left[-(\frac{1}{2}) \left|\frac{l-\mu}{\beta \lambda}\right|^\nu \right]} {\lambda 2^{(1+1/\nu)}\beta\Gamma (1/\nu)}
\end{align}
where $\Gamma(\cdot)$ is the gamma function and
\begin{align*}
\lambda&=\left[ 2^{(-2/\nu)}\... |
Please help me to find the limiting distribution (as $n \rightarrow \infty$) of the following:
$$ U_n = \frac{X_1 + X_2 + \ldots + X_n}{X_1^3 + X_2^3 + \ldots X_n^3},$$ where $X_i$ are iid $N(0,1)$.
|
In Luce (1959) the choice axiom is definied, that for a finite subset $T$ of $U$ such that, for every $S\subset T$, $P_S$ is defined.
If $P(x,y)\ne 0,1$ for all $x,y\in T$, then for $R\subset S\subset T$: $P_T(R) = P_S(R)P_T(S)$
If $P(x,y)= 0$ for all $x,y\in T$, then for $S\subset T$: $P_T(S) = P_{T-\{x\}}(S - \{x\})... |
I've been using the R Forecast package which I have used to create fitted ETS and Arima models. I can easily predict ahead within R using the Forecast package but need to be able to do prediction inside a browser using Javascript. A tiny worked example would really help me in working through the maths.
How do I implem... |
What do error bounds actually mean in forecasting timeseries? For example, when I get a forecast I get the 85% and 95% high and low error bounds. I can also set my own error bounds to be calculated but am unsure of what an error bound in terms of timeseries forecasting means.
|
Why multiplicative property exists only for the exponential smoothing with seasonality and trend (Winter's additive and Winter's multiplicative models) and not for the exponential smoothing with only seasonality (without trend)? As I have seen in forecasting software, the exponential smoothing model with only seasonali... |
I researched about k-means and these are what I got: k-means is one of the simplest algorithm which uses unsupervised learning method to solve known clustering issues. It works really well with large datasets.
However, there are also drawbacks of K-Means which are:
Strong sensitivity to outliers and noise
Doesn't work... |
Suppose I'm trying to investigate the lifespan distribution of light bulbs. The catch is that I can only observe each bulb at most $T$ time units. So if the bulb doesn't blow before $T$ I will not know what the value of the lifespan would be for that specific bulb, only that its lifespan was larger than $T$.
So, the qu... |
$X_1, X_2, \dots X_n$ and $Y_1, Y_2, \dots Y_n; n = 1000$ are two samples of physical quantities coming from the application of two different mathematical models to some independent and identically distributed (iid) data.
The mathematical model used to generate $Y_i%$ is a simplified version (tuned by the parameter $r$... |
I just need a direction on which regression algorithm (preferably glm or similar) algorithm to use when the predictor variables are a mix of numerical and categorical variables. The output is numerical for the time being but in future, I need to extend this for categorial output also.
My input columns are in the the ... |
This question has an answer at: https://gis.stackexchange.com/questions/49923/how-do-i-compare-two-maps-to-determine-which-is-better (buried deep in comments so copied here)
Say I have two sets, A and B, with a different amount of X,Y points
Is there a way to calculate how similar the data is?
So something like this ... |
I understand that a problem will be inevitable if the variables have different scales of measurement.
My inclination is to think that even if the variables have the same scale of measurement it would be incorrect to simply sum (or to simply average) the raw scores of the variables that are "enough loaded" by the factor... |
I have an empirical estimate of a ROC curve, that is, a plot of the sensitivity versus 1-specificity over all possible cut-off values of the marker.
Based on an empirical ROC curve, I would like to determine the optimal cut-off point that represents a better trade-off between sensitivity and specificity. I have read th... |
I have a multilevel logistic regression model predicting the probability of item nonresponse, where the random intercept variance at country level takes on the following distribution for the different countries (unconditional model):
Given the country codes Belgium (BE), Bulgaria (BG), Croatia (HR), Cyprus (CY), Czec... |
As the title says, what I'd like to do is stepwise introduction of predictor variables to a mixed-effects model. I'm going to first say what I'd be doing if it were stepwise linear regression, just to make sure I've got that part right, and then describe the full model to which I want to apply an analogous approach.
I ... |
I am new to econometrics. I am studying earnings management in banks during the financial subprime crisis.
I manage to collect data from 23 banks from 2005 to 2010. Few years of them are missing but I end up with 126 observations.
Is that enough to perform a regression analysis with fixed effects (I do not know if that... |
I have what I think is a very simple beginner question, but I do not have any formal training or knowledge of statistics or design of experiments.
Let's say I have a yes,no (0,1) outcome of an experiment, say whether or not a customer purchased a product given a coupon. There are 5 kinds of coupons, each with differ... |
Which problems are best solved using which kernels and why?
Can you give a simple toy problem that isn't linearly separable in input space but is linearly separable in feature space, using an RBF kernel? A polynomial kernel?
|
It is standard advice to set a random seed so that results can be reproduced. However, since the seed is advanced as pseudo-random numbers are drawn, the results could change if any piece of code draws an additional number.
At first glance, version control looks to be a solution to this, as it would at least allow you... |
I'm trying to estimate how many people visited the farmers market once, twice, thrice, etc. in a given time period, using sampled data. We have interview data from approximately 50% of visitors as they entered the market which lets us identify them uniquely. For the purposes of this analysis, I'm assuming that the inte... |
I am looking at a Semivariogram. I know it shows me the relationship between distance and semi-variance. I also know that at the end of the range the distance no longer auto correlates. What I am wondering is, what does the semi-variance tell me at the point where to distance no longer auto correlates (at the sill)?
So... |
I have very recently started learning about Generalised Linear Mixed Models and was using R to explore what difference it makes to treat group membership as either fixed or random effect. In particular, I am looking at the example dataset discussed here:
http://www.ats.ucla.edu/stat/mult_pkg/glmm.htm
http://www.ats.ucl... |
I am hoping to implement an unsupervised technique that identifies distinct clusters of individuals based on longitudinal data: 100 continuous or categorical variables measured at different ages.
A lot of the functionality provided by R packages seems to have been developed for simpler cases (eg with just one variable ... |
I'm having a basic statistics problem. I'm running an experiment using a photon counting detector to measure a diffraction pattern. I want to calculate the centroid of each diffraction spot and the error in the centroid.
In 1D my data can be considered to be a histogram of counts within equally spaced bins. I'm calcul... |
I am trying to simulate an auction system in which a number of competitors, $N$, independently offer a discount from a reference price previously published by the buyer.
The order is awarded to the a certain competitor based on a complex formula involving the max discount not exceeding a certain threshold, the median o... |
I would like to forecast short-term electric load by using Artificial Neural Network and Support Vector Regression. However, there's one question that sticks in my mind. In such forecasting with non-parametric methods, can one check the autocorrelation of the errors, which is actual values subtracted from predicted val... |
I am running kmeans for a market research study, and I have a couple of questions:
Should I be standardizing my data, and if so, how? For example, one variable I have is product demand, which is measured on a seven point scale. On the other hand, I also have a variable on age, which is a very different scale. Should I... |
I have 3(treatment)x3(period)x6(sequence) crossover design data. I have used SAS PROC MIXED procedure and I got the results with following code:
data cross;
input yield id treatment period sequence;
cards;
72 1 1 1 1
73 1 2 2 1
77 1 3 3 1
75 2 2 1 2
78 2 3 2 2
70 2 1 3 2
75 3 ... |
I have been given an excel document with many rows full of numbers, some rows are marked.
Each row represents a case in the clinic, each column represents a research test parameter.
I need to find, what's so special about these marks that make them marked, and it has to be in a unified pattern, so I can create an algor... |
I would appreciate if you could please take a look at the following attempt. I am preparing for an upcoming exam, and this is taken from a past exam paper. I would like to know if it is correct. Thank you for your time.
Consider the average $Y$ of $n$ independent random variables, each uniformly distributed on $[0,1]$.... |
I am studying a univariate and discrete time series. I know that residuals should be effectively random and have a good fit, and should have a bell shape.
Does the plot below suggest that the residuals are effectively random?
|
Suppose I am using a standard inhibition model to find biochemical parameters that fit my data. The equation is:
$y = \frac{A}{{1 + \exp \left( {\ln \left[ S \right] - \ln IC_{50}} \right)}} $
where $\left[ S \right]$ is the concentration of my inhibitor and $IC_{50}$ is the concentration of my inhibitor at which the m... |
When the null hypothesis is simple (i.e., has only distribution of the sample) and the only distribution of the sample is continuous, the p-value can be shown to be uniformly distributed over (0,1).
When the null hypothesis is composite (i.e., has more than one sample distributions), is the p-value still uniformly dist... |
I want to compare two percentages on a single categorical variable from one sample.
For example, in my data set, a variable can take on two values (i.e. A and B). Of 586 instances, 87.4% is in Category A (512 of 586) and 12.6% is in Category B (74 of 586).
Can I say 'my participants tend to be more concerned about Ca... |
I have a need to simulate data in R using the following:
Simulate data for 5 (or more) subjects, indexed by $i$, $(i=1,~...,~5)$ with $6$ observations per subject indexed by $t$ $(t=1,~2,~...,~6)$. Observations of the $Y$ variable are taken at various times $(\text{TIME}=2,~3,~5,~9,~11,~13)$, per subject using various ... |
I am estimating the following Power Law relationship:
$$\ln(\text{Rank}) = \text{constant} + \alpha \ln(\text{Size})$$
where $\text{Rank}$ is $1,~2,~3,~...,~n$, and $\text{Size}$ is the raw value.
What are the standard errors of the alpha coefficient in this instance? I read in an article that you cannot use the norma... |
Say I am performing an analysis looking at a particular health measure. I am interested in the difference in that measure between patients and controls and whether or not the difference is different from 0. There have been studies in the past looking at my same research question and health measure, but in different sam... |
I have done a ncvTest, but I am not really sure how to interpret this properly. I look documentation and examples online but was not able to find anything that clearly explains about ncvTest.
Here are my results from ncvTest:
Non-constant Variance Score Test
Variance formula: ~ fitted.values
Chisquare = 3.203987 D... |
Spectral leakage (https://en.wikipedia.org/wiki/Spectral_leakage) is obviously a function of several factors, including its underlying algorithm, precision of variables, etc.
Is there a body of work that explores the behavior and attempts to characterize the noise in spectral leakage? Both frequentist and Bayesian appr... |
I have read that the k-means algorithm tries to minimize the within cluster sum of squares (or variance). With some brainstorming, a question popped up. Why is it that k-means or any other clustering algorithm that has within cluster variance as its objective to minimize, chose this as the objective function to minimiz... |
I am building a multiple regression model - wrapped in a function - with one dependent variable and a dozen independent variables. The reason why I am building a function is that I need to do this analysis with approximately 75 different datasets.
The challenge is that the independent variables correlate better with t... |
The definition of the Bayesian information criterion is usually given as $$\operatorname{BIC} = -2 \text{ln}(L) + k\text{ln}(n)\,,$$ where $\ln(L)$ is the maximized log-likelihood of the data given a particular model, $k$ is the number of free parameters that this model has, and finally $n$ is the number of data points... |
I was wondering if there is any tools like R that can be used to identify the Integer valued ARIMA process? I know that using forecast package in R we can identify the ARIMA process , is there any package for INARIMA?
|
I understand this question is quite a broad one, but I wonder what should be the decisive points in deciding to create (or not) a new package for R. To be more specific, I would add that the question is not about the reasons to use R in itself, more about the decision to compile various scripts and to integrate them in... |
I have a question about correlations again.
I have a dichotomous variable that I want to correlate with the another one (metric) by using the point-biserial correlation coefficient. I get a non-significant result (n=28). But my concern is that one of the variable has almost no variation in the values: 27 observations ... |
Suppose we are testing null $H$ versus $K$. Here $H$ and $K$ are viewed as two disjoint sets of distributions of sample $X$
Given a sample $X$, one test rule rejects null if and only if $T_1(X) \geq c_1$, and the other $T_2(X) \geq c_2$.
I was wondering how to compare the powers of the two tests at a sample distributi... |
I have a data set with large number of attributes some are not relevant and some are relevant for the regression model. My approach was to do forward and backward selection to identify a starting point, such as which attributes I should drop from the analysis.
I did a forward and backward without any log transformatio... |
In my data the dependent variable ‘vocabulary uptake’ is measured as scores ranging from 0-10 and the independent variable is yielded from a ‘reading intervention’ with 4 different reading conditions (glossed, no glosses, etc.). There are about 80 participants in each of the four groups. The data is not normally distri... |
When estimating parameters, I know the general rule of thumb is n/parameters should be >10. Does the intercept in a model count as one of the estimated parameters in this "rule"?
For example, if I had an n of 50, would I only be able to estimate 4 parameters, as the intercept would make up the fifth?
|
I want to calculate volume weighted average price and standard deviation for the following dataset:
Jan Product A: q= 100 p=23
Jan Prodouct B: q=11 p=45
Feb Prodouct B: q= 55.7 p=60
What formulas should I use?
If you know Stata: Should I use pweights or fweights?
|
I try to do a linear regression of a positive continuous dependent variable (outcome) with several independent variables (all of them are categorical / binary). I had many troubles to get Gaussian residuals (the distribution of my outcome variable is not Gaussian itself).
I tried a lot of transformations for the outcom... |
I'm using SPSS and this drop-down menu: Analyze -> General Linear Model -> Univariate.
DV: Number of times patient visited doctor over one year
Factor 1: 2 levels: Two different drugs
Factor 2: 2 levels: Gender
Factor 3: 4 levels: Race
Factor 4: 3 levels: drug taken morning, afternoon, evening
Covaria... |
I write this question with reference to an example on p138-142 of the following document: ftp://ftp.software.ibm.com/software/analytics/spss/documentation/amos/20.0/en/Manuals/IBM_SPSS_Amos_User_Guide.pdf.
Here are illustrative figures and a table:
I understand that the latent variable has no natural metric and that ... |
set.seed(11)
a = runif (12)
b = rep(c(1,2,3),4)
summary(lm(a~b))$coeff
summary(lm(a~b-1))$coeff
What does a p.value for the intercept means ?
What differences makes the second formula ?
Why is the p.value lower and the R squared higher in the second formula ?
What does the first column ("Estimate") means ?
Thanks a lo... |
Can anyone tell me if logistic correction is the best method to correct the probability of gradient boosting machine? If so, how can I do it?
|
For a binomial GLM, both the probability and the number of trials are important for each data entry. Using the glm fucntion in R, how do I specify them separately and explicitly?
Previously, when using glm for the binomial family, I used glm(cbind(V4, V5) ~ V1 + V2 + V3, family=binomial) where V4 is the number of succe... |
I was trying to implement the text rank algorithm mentioned in :
http://acl.ldc.upenn.edu/acl2004/emnlp/pdf/Mihalcea.pdf
It seems to be simple to implement in python but I could not get the exact result as the authors have got in the paper for the example text that they mentioned.
Just wondering if anyone has tried the... |
Let's say I have a dataset:
x=rnorm(1000, mean=0, sd=10)
I would like to create five variables (a,b,c,d,e) that I can use to predict x.
I would like to have a fixed predictive validity for each variable, let's say:
.56, .45, .36,.23,.10.
What's the easiest way of doing this in R?
|
I'm doing a factor analysis and using the resulting factors in a regression. I'm using SAS. A number of the variables load positively on a factor. In order to make it easier to interpret in the final regression, it would be better if the loadings were negative.
Is there a way I can rotate the factor so the loadings are... |
I used a 3x2 between-subject ANOVA to examine the effect of colour (three levels: colourless, light red, and dark red) and odour (odourless or not) on perceived sweetness. The results indicated significant main effects for colour and odour and also a significant interaction of these two factors. I don't know what to do... |
I have hourly login data for a web site. Certain hours of the day for example between 09:00 and 12:00, there are heavy traffic on the site. I would like to forecast the hourly data for about one year.
I have seen the usage of forecast package for monthly data, but I need to do forecast of the hourly data so that I can ... |
I've set up code to give me a graphical depiction of AIC vs BIC parsimony over various degrees of polynomial models. On the rare occassion AIC does not match BIC trends, which parsimonious model would you select and why?
|
I would like to run a regression of the following form:
Y ~ B1*predictor1 + B2*predictor2 + B3*predictor3
I would like to specify B1,B2,B3 to hold the values: 0.4,0.2,0.1
Is there way to weight these three predictors by the values of B1,B2,B3 using lm?
So for example I would like to do:
lm(y ~ 0.4*predictor1 + 0.2*pre... |
I am reviewing a manuscript and am struggling to understand why some statistical techniques were chosen, i.e. what information they can give. The paper looks at the effect of predicting a variable such as temperature based on noisy measurements from different sensors. Can you please correct any errors in the following ... |
I am having trouble coding up in R equation 3.1 in the following paper: http://www.intelligenthedgefundinvesting.com/pubs/rb-cb.pdf
My function:
expected.drawdown<-function(mn,sd,t){
ret<-mn - ((sd^2)/2) #return R
a<- (ret * sqrt(t))/sd
b<- (ret * t) + (((sd^2) * t)/2)
c<- -(sqrt(t) * (ret + (sd^2))) / sd
... |
What happens to the Type 1 error rate, the Type 2 error rate, and Power if you do
not adjust for multiple comparisons when you should? What happens to these as a result
of using something like Bonferroni’s adjustment?
|
I am running predictive regressions on stock returns and as expected less relations hold out-of-sample than in-sample, however in some cases I find a significant relation out-of-sample but not in-sample at the usual significance levels (90%, 95% or 99%) for a potential predictor series.
Is this possible? How can this b... |
I have a list of 25 air pollutants many of which are strongly correlated. I was hoping to reduce down to a short list of eigenvectors which would each be composed of a small number of the pollutants.
I mostly followed this tutorial video so far.
When I tried varimax rotation on all of the PCs (as seems to be done at th... |
I have a series of tests, all of them of different difficulty, and from each of them I get an average score and a population standard deviation; e.g:
86.94% 16.27%
84.17% 6.52%
99.55% 1.19%
81.70% 9.61%
99.82% 0.34%
Now, clearly the last test, that has an average of 99.82% and a standard deviation of 0.... |
I've spent days trying to determine the difference between these two methods, which, as best I can tell, represent the univariate and multivariate approaches to a within-subjects design. Can anybody tell me why these two analyses get different F-values for their effects?
Here's demonstration data in the shape that rep... |
How are they all versions of the same basic statistical method?
|
I'm using machine learning to do text classification right now, I first use a training data to train my classifier, then use this classifier to classify text document into different classes. With the time goes on, some new words will arise
and I need to adjust my training vocabulary to correctly classify these document... |
Being quite new to the field, it occurs to me that there are multiple and fundamentally different ways of assessing the quality of a logistic regression:
One can evaluate it by looking at the confusion matrix and count the misclassifications (when using some probability value as the cutoff) or
One can evaluate it b... |
I came a cross some survey results that show user preferences, asked in the form of the most and least preferred choices. The result reported was something like "x % of people chose option A as their most preferred" and "y % of people chose option B as their least preferred". It seems to me that there is some dependenc... |
Why is the sum of squares error function of noisy input and noisy target variables very similar to the error function for only noisy input?
This is the relevant part in Bishop's book:
Another viewpoint on kernel regression comes from a consideration of
regression problems in which the input variables as well as the... |
I'm not involved in drug testing, but it is my understanding that most trials are performed using a control and a treatment group (or perhaps a few discrete treatment groups). This data is then used to determine effectiveness of a drug, and hopefully uncover any deleterious side-effects before the drug is released on t... |
I'm trying to forecast a seasonal time series based on its historical values, and also two more time series (that are seasonal themselves.)
I'm trying to use an auto.arima, and I'm going to input the other two time series (the exogeneous regressors) as a contatenated list of dummy variables, in auto.arima's xreg parame... |
I'm new to the R language. I would like to know how to simulate from a multiple linear regression model that fulfills all four assumptions of the regression.
ok.. thank you.
Let say i want to simulate the data based on this data set:
y<-c(18.73,14.52,17.43,14.54,13.44,24.39,13.34,22.71,12.68,19.32,30.16,27.09,25.40,26... |
I have a monthly time series (for 2009-2012 non-stationary, with seasonality). I can use ARIMA (or ETS) to obtain point and interval forecasts for each month of 2013, but I am interested in forecasting the total for the whole year, including prediction intervals. Is there an easy way in R to obtain interval forecasts f... |
When conducting various statistical test why do we expect equality of variances/ homoscedasticity/sphericity etc.?
|
I've been spending quite some time to figure out how I can get the best R squared value from randomization of some values in a linear regression equation. I have allele frequency data and 14 environmental gradient data. Allele frequency value is fixed, but 2~14 combinations of the 14 environmental variables are used.
M... |
I have a uniform distribution that generates from the $\mathbb{Z}_q$ (so I have integers from the interval [$-q/2$, $q/2$). Then I subtract one from the other and take the result modulo $q$ (so again I have an integer from the interval above).
How to prove (or disprove) that the resulting distribution remains uniform ... |
I am trying to get a grasp on how to use machine learning to predict financial timeseries 1 or more steps into the future.
I have a financial timeseries with some descriptive data and I would like to form a model and then use the model to predict n-steps ahead.
What I have been doing so far is:
getSymbols("GOOG")
GOOG... |
How does the formula for the lmer function work?
Some examples:
library('lmer')
lmer(Yield~(1|Batch),Dyestuff)
lmer(Yield~(Batch)*(1|rep(c(1,2,3),10)),Dyestuff)
lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy)
On the left of ~ sign is the dependent variable and on the right comes all the independent ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.