instruction
stringlengths
9
38.7k
I am currently using the R package lme4. I am using a linear mixed effects models with random effects: library(lme4) mod1 <- lmer(r1 ~ (1 | site), data = sample_set) #Only random effects mod2 <- lmer(r1 ~ p1 + (1 | site), data = sample_set) #One fixed effect + # random effects mod3 <- lmer(r1 ~ p1 + p2 + (...
Are Bayesian approaches (static and dynamic) used for classification (which is supervised) or for clustering (which is unsupervised)? or can they be used for both ? I even see that for instance to compute the likelihood they need the class labels of data, so I was thinking that it is only convenient for supervised case...
I want to statistically test the mean difference of a continuous variable (let's call this variable 1) between four groups (nominal) in my sample. Variable 1 has a very skewed distribution. This test also needs to be corrected for three other continuous variables that are certainly confounding variables when it comes t...
For some time now, I have been looking for a good introductory reading on Copulas for my seminar. I am finding lots of material that talk about theoretical aspects, which is good, but before I move onto them I am looking to build a good intuitive understanding on the topic. Could anyone suggest any good papers that pro...
Problem In regression one usually computes the mean squared error (MSE) for a sample: $$ \text{MSE} = \frac{1}{n} \sum_{i=1}^n\left(g(x_i) - \widehat{g}(x_i)\right)^2 $$ to measure the quality of a predictor. Right now I'm working on a regression problem where the goal is to predict the price customers are willing to p...
I have a set of values from which I wish to acquire a formula. Below is the data set. F V1 V2 V3 V4 A1(i) 0.02 30 0.5 X1(i) A2(i) 0.02 60 0.5 X2(i) A3(i) 0.02 90 0.5 X3(i) A4(i) 0.02 120 0.5 X4(i) A5(i) 0.1 30 0.1 ...
I dont understand how the lecturer solved this problem. The question is: You are working with a dataset that contains descriptions of toxic and non-toxic substances. The dataset, which consists of 1000 samples from each of the two classes, is described in terms of a class label and a number of attributes. The d...
I am currently training a NN classifier on synthetic data generated from a model of real data, and this synthetic data is uniformly generated across the range of values expected in the real data. However, even a cursory inspection of the real data shows that a smaller range of values within the broader range occur much...
I am used to performing power analysis with unweighted data. In R, I use the pwr package, which is based on Cohen (1988). How would you do power analysis on weighted survey data? I don't think you could use the same calculations. The weights would probably somehow have to figure into it? Is there a reference that discu...
Soon I'll be sitting for a midterm (and then the dreaded final) for a graduate class in Statistics. It's open book / notes but I'll be needing a calculator -- something I've not used for years. Any thoughts on what features I should look for when shopping for one. I've always wanted to own and use an HP 10 series calc...
I am fitting a simple linear regression model with 4 predictors: lm(Outcome ~ Predictor1 + Predictor2 + Predictor3 + Predictor4, data=dat.s) I'm finding that the model predictions are consistently off as shown in this graph: The model clearly overestimates the low values and underestimates the high values, but the mis...
I'm looking for a good Java library implementing several clustering algorithms. I'll have to cluster some programs execution traces and I still don't know which algorithms I am going to need, so I'd like to use a library providing lot of them and that makes it easy to swap algorithms. So far I had a look at Weka but I ...
I am interested in estimating a Poisson regression for mortality rates, with number of deaths as the dependent variable and log(population size) as the offset. I have 50 observations (states). I am aware of rules of thumbs in various regression models to figure out the maximum number of predictors. For example: Cox mod...
So 50% likely to me sounds like 150% percent that X will cure cancer, and 100% that Y will cure cancer. Other than this, I have NO IDEA without googling how to figure this out. Detailed explanation is good. edit: 66% unlikely (or likely???) that Y will cure cancer when compared to X -- now What are the basic rules th...
I once heard a method of using the lasso twice (like a double-lasso) where you perform lasso on the original set of variables, say S1, obtain a sparse set called S2, and then perform lasso again on set S2 to obtain set S3. Is there a methodological term for this? Also, what are the advantages of doing lasso twice?
I would like to create a "weakly informative" prior distribution for a couple parameters. They both could theoretically take any value between 0 and 1, but I have reason to think that they should be negatively correlated. Is there any sort of standard joint distribution (a beta-analogue to the multivariate normal?) whe...
I'm currently working on a quasi-experimental research paper. I only have a sample size of 15 due to low population within the chosen area and that only 15 fit my criteria. Is 15 the minimum sample size to compute for t-test and F-test? If so, where can I get an article or book to support this small sample size? This p...
I'm still working on R problems from a book, and using my spending data. Part 1: I need to predict the amount that a male with average data for status, income and verbal would spend along a 95% CI. (NB, male is coded as 0 and female 1 in the data set.) First I used the linear model newspend<-lm(sepnding ~ status + i...
I have a 4 dimensional feature and each of them are independent normal distributions. I want to calculate the bayesian error associated with this classifier. The covariance matrix and the mean have been given for multivariate normal distribution. I understand that I need to compute the error integral for the 4 dimensio...
I'm having some trouble with a homework problem, and would appreciate help. You have an i.i.d. sample of n observations drawn from a distribution.If $\hat x$, the mean, is known, we can estimate the variance with: $\hat \theta_x^2 = 1/n \sum(X-\hat x)^2$. Show that $\hat \theta_x^2$ is and unbiased estimator of the var...
I have a doubt regarding confirmatory factor analysis (CFA). I have three different constructs, each one with its corresponding scale: resilience (3 dimensions, 4 items each) humour (3 dimensions, 4-5 items each) coping (2 dimensions, 8 items each) My question is: do I have to perform a different CFA for each con...
Following my question here, I am wondering if there are strong views for or against the use of standard deviation to detect outliers (e.g. any datapoint that is more than 2 standard deviation is an outlier). I know this is dependent on the context of the study, for instance a data point, 48kg, will certainly be an outl...
Sorry for my long question but I'm sure it will be interesting for some of you: My research is in the construction area. The dependent variable is time required to finish a construction task and several independent variables has been collected (crew size, job size, etc.). However the main dependent variable is consiste...
I've been trying to read up on Poisson regression models, and it looks like it is possible to estimate such a model with a binary outcome. This has come up before on this site here (and somewhat here and there). I am still a bit confused about how to interpret the coefficients when the outcome is binary, and how to spe...
We are given a probability distribution $p_1 \ge$ $p_2 \ge$ $p_3 \ge \cdots p_n$ on $n$ items. We sample from this distribution without replacement (re-scaling probabilities after each sample to account for the removed item). We discard the first $n-k$ sampled items and keep the last $k$ sampled items. What is the expe...
I read Nonlinear Dimensionality Reduction by Lee and Verleysen [Google Books] and came across the following theorem (p. 8): Let $\mathbf{y}$ be a $D$-dimensional vector $[y_1, \ldots, y_d, \ldots,y_D]'$; all components $y_d$ of the vector are i.i.d. with a finite eighth order moment. Can anyone please explain what th...
Cross validation lets us get multiple estimates of the generalization performance of an algorithm when the performance cannot be estimated for each example independently. (As with an F1-score, we need to estimate it over all of the data.) But when we use a t-test to determine whether or not there is a difference in pe...
On page 192 of Analysing spatial point patterns in 'R' (Baddeley 2011), there are plots of the Gcross function for the amacrine dataset. I am looking for an interpretation of the plot. off/off and on/on are far below the CSR line, but on/off and off/on cross the CSR line - what does this mean please?
I have a set of observed Markov sequences for which I have calculated first and second order transition matrices: $$M={P}(X_i=x_i|X_{i-1}=x_j)$$ and $$M^2=P(X_i=x_i|X_{i-1}=x_j,\,X_{i-2}=x_i )$$. I then produced a series of Markov chains based on the transition matrix $M$ and hence recalculated the empirical transitio...
I want to select models using regsubsets(). I have a dataframe called olympiadaten (data uploaded: http://www.sendspace.com/file/8e27d0). I first attach this dataframe and then start to analyze, my code is: attach(olympiadaten) library(leaps) a<-regsubsets(Gesamt ~ CommunistSocialist + CountrySize + GNI + Lifeexp + ...
When regressing income ($Y$) on age ($X$) moderated by gender ($Z$), I not only find significant effects for age ($X$), age squared ($X^2$), gender ($Z$), the interaction of age and gender ($XZ$), and the interaction of squared age and gender ($X^2Z$). Could anyone help me with how to interpret these results? Specifica...
I recently had a client come to me to do a bootstrap analysis because an FDA reviewer said that their errors-in-variables regression was invalid because when pooling data from sites the analysis include pooling data from three sites where two sites included some samples that were the same. BACKGROUND The client had a n...
I need to do a panel regression where my data is proportions for both dependent and one of the independent variables. I do not have the underlying data for the proportion so I cannot expand the data and use logistic regression. Any ideas on how to handle this? Poisson regression maybe?
I need help with following programming code: Beforehand: I tried to estimate Poisson-parameters, but M.L.E. and M.C. do not give satisfactory results regarding actual to expected, from actuarial point of view, Poisson-model is okay. Hence would like to "use" Poisson-parameters like this: 0.9, 0.99, 0.999, 0.9999, ...
I am new at using survival analyses. I am writing an article on differences in recidivism for an experimental and control group of offenders. Due to differences between the groups in gender, I have added gender as covariate to my Cox Regression analysis. In Kaplan Meier, I get the mean survival time (no median, I think...
I have been reading some of the posts about feature selection and cross-validation but I still have questions about the correct procedure. Suppose I have a dataset with 10 features and I want to select the best features. Also suppose I am using one-nearest neighbor classifier. Can I perform an exhaustive search using c...
Good Day, I believe this issue is more of a lack of understand of R (as I have never used it till recently) than anything else. What I am looking for is references, or documents to help me solve my problem. I have a set of data that I created a pair of decision tress on (pruned and unpruned). I did this using Weka a...
$$Y \sim Geometric(P)\\ P \sim \mathcal B(2, 1)$$ I'm trying to compute $E[Y]$ without finding marginal distribution of $Y$. I need some hints here. I also need to find the pmf of $Y$. My approach is as follows: Integrate from 0, 1 over $p: f(p)(1-f(p))^{(y-1)}$ where $f(p)$ is the pdf of $\mathcal B(a, b)$. Thi...
I recently started taking Probabilistic Graphical Models on coursera, and 2 weeks after starting I am starting to believe I am not that great in Probability and as a result of that I am not even able to follow the first topic (Bayesian Network). That being said I want to make an effort to learn this course, so can you ...
Question: I am assigned this problem, but I don't quite understand what it's referring to. Is $\alpha$ the same as the intercept of the regression, and the coefficient on the variable u hat is 1? Would the OLS estimator for $\alpha$ come from the normal equations, then? Why do we need to square u hat in part b - wha...
Possible Duplicate: Best practice when analysing pre-post treatment-control designs Is it acceptable to use ANOVA to analyze pre-test/post-test differences in two groups, or would it be better to use repeated measures ANOVA? These data can also be solved using a paired-samples t-test as well, right?
I looked over the tutorial in R for prediction and decided to reword my question. I need the prediction on average for male with a 95%CI then repeat with maximal values using the variables status, income and verbal. Now If I did the predictions correctly shown below with the mean then the max values. But doesn't that g...
In Monte Carlo Statistical Methods by Robert and Casella, I saw there is a reference to Understanding Monte Carlo Markov Chain (Springer Series in Statistics) by Gareth O. Roberts and Richard L. Tweedie published in 2004. I searched this book on the internet and didn't find its availability. On Amazon, one link says i...
I have some data on a sample of $n=1776$ hospitals. For each hospital there is a total number of patients (patients), and a number of patients diagnosed with a particular condition (diagnosed). Do I take the mean of this proportion,diagnosed/patients, for all hospitals in the sample, $\hat{\mu}$, and calculate a 95% co...
I've been using elastic net implemented in R (via glmnet) for some modeling, but I was wondering, due to the number of outliers in my data, if there was some sort of modeling approach for regularized robust regression? e.g. something like elastic net applied to robust regression. if there's something already in R, even...
Related to question here. I've been trying to teach myself about Network Analysis, and developing DAG charts in R. Let's say that I have the following data. dat=data.frame(sold=c(0,0,0,1,0,1), won=c(1,0,0,1,0,1), bid=c(5,3,2,5,3,4)) dat Given what I'm trying to analyze, I know that the DAG plot should be as follows: b...
From Wikipedia's statistical randoness: Global randomness and local randomness are different. Most philosophical conceptions of randomness are global—because they are based on the idea that "in the long run" a sequence looks truly random, even if certain sub-sequences would not look random. In a "truly" random sequenc...
I am willing to run a clustering algorithm on data records consisting in sets each one representing the features enabled at a certain time. Is there any clustering algorithm you would recommend me to try out? In my first tests I'm experimenting with K-means, but maybe there is something more suitable. Is there any dist...
I am attempting to use C# (and the alglib library) to calculate the predicted probability that an outcome ends up in one of five classes. I have managed to calculate parameter estimates (i.e. slope and intercept values) for each outcome, using 1 group as a reference. However, I can't seem to figure out how to use thes...
I know similar questions have been asked many times here. But I still don't get simple formula or idea how estimate this. I have site with traffic and I want to split portion of it to test new search relevance algorithms, i.e., result sorting. I will measure abandonment rate (searches without click/total amount of sear...
In their book "Robust Statistics", Maronna et al. consider the following model for robust regression: $y_i = \beta x_i + u_i$, where $u_i$ are independent of the $x_i$, and are i.i.d, with finite variance. They go on to provide a robust estimate $\hat{\beta}$ of $\beta$ which is asymptotically normal and give the covar...
Suppose we have a task that can be a success or a failure. We pay a fee and get a success for any attempt at the task. We can pay more in order to get a higher success rate. Given sufficient resources, we can guarantee success. For my example this shows the percentage success (i.e. probability of success on any attempt...
To (hopefully) clarify the question a bit more if you have a broad working hypothesis that x influences y, on a causal/predictive basis (e.g. if x goes up in time t, then you would expect y to go up in time t+1, assuming the working hypothesis is true). In traditional time-series analysis the length of time that the p...
Coming from a rigorous background in analysis and modern probability theory, I find Bayesian statistics straightforward and easy to understand, and frequentist statistics incredibly confusing and unintuitive. It seems that frequentists are really doing bayesian statistics, except with "secret priors" that aren't well m...
Using the WeakLearn algorithm from the original RankBoost paper, how do you set the optimal threshold to maximize AU-RPC (instead of AUC)? And, once that threshold is set, how do you calculate the AU-RPC for use in calculating alpha? This paper suggests that the "area under the recall-precision curve [is] a much better...
Cochran's Theorem says that The conditional distribution of $\chi^2=\sum_{i=1}^nX_i^2$ under $m(<n)$ independent homogeneous linear constraints: $$\begin{align}a_{11}X_1+\cdots\dots +a_{1n}X_n&=0\\\vdots \\a_{m1}X_1+\cdots\dots +a_{mn}X_n&=0\end{align}$$ is $\chi ^2_{n-m}$, provided $X_1,\dots,X_n$ are i.i.d $N(0,1)$ ...
Suppose we have the ordinal response $y:\{\text{Bad, Neutral, Good}\} \rightarrow \{1,2,3\}$ and a set of variables $X:=[x_1,x_2,x_3]$ that we think will explain $y$. We then do an ordered logistic regression of $X$ (design matrix) on $y$ (response). Suppose the estimated coefficient of $x_1$, call it $\hat{\beta}_1$, ...
I have to work with bimodal and normal distributions. Starting from a set of given bimodal distribution I have to draw a set of random vectors. Some of these random vectors must have given correlation coefficients. I thought to draw a vector $x_1$ of random values from one of the bimodal distributions, and then mix wit...
Possible Duplicate: What if interaction wipes out my direct effects in regression? I have three hypotheses within my experiment, and interpreting the interaction in relation to the rest of the results is what I am having difficulty with. The first is that the IV in the model (with two levels) will be related to one ...
I found a reference in an article that goes like: According to Tabachnick & Fidell (1996) the independent variables with a bivariate correlation more than .70 should not be included in multiple regression analysis. Problem: I used in a multiple regression design 3 variables correlated >.80, VIF's at about .2 - .3...
I need a good reference for the methods and/or the difficulties that arise when attempting such a combination. I've found Loughin, TM, A systematic comparison of methods for combining p-values from independent tests, Computational Statistics & Data Analysis (2004) 47(3):467–485, for example. Is there a better/more prec...
From Wikipedia quasi-Monte Carlo method is a method for numerical integration and solving some other problems using low-discrepancy sequences (also called quasi-random sequences or sub-random sequences). It seems to me low discrepancy sequences if seen as random samples are samples of uniform distributions, and n...
Suppose I have 20 mice. I pair the mice in some way, so that I get 10 pairs. For the purpose of this question, it could be a random pairing, OR it could be a sensible pairing, like trying to pair mice from the same litter, of the same sex, with similar weight, OR it could be a deliberately stupid pairing like trying to...
I'm taking a first course in statistics. I have been given a dataset with the number of companies falling into different categories of revenues (in thousands of euros): <1 64108 1-39 73121 40-99 67532 100-399 68613 400-1999 33760 2000-9999 10293 10000-39999 ...
I hope Michael Chernick will read this question. I have applied Dixon test to 100k rows. Rows are like- 1 1.819691 2.565696 3.317881 1.491987 2.817675 2.676356 3.522531 3.226779 2 1.721111 1.586334 ...
I have 11 independent variables and one intercept. If I am right, that means there are $2^{12}=4096$ possible different models, right? So does this mean, if I calculate each model and save the $R^2_{\text{adj}}$ and take the model with the highest $R^2_{\text{adj}}$, that it will be the best model (best fitting, best c...
I have been asked by a journal reviewer to provide the my final trained SVM models so that others can try to replicate or make use of the models. Is there an accepted way to do this? I was thinking of providing a spreadsheet detailing the selected features, the support vectors, the hyperplane bias and he support vecto...
From Wikipedia A pseudorandom variable is a variable which is created by a deterministic procedure (often a computer program or subroutine) which (generally) takes random bits as input. The pseudorandom string will typically be longer than the original random string, but less random (less entropic, in the informatio...
Let $U \subset \mathbb{R}^n$ be a vector space with $\dim(U)=d$. A standard normal distribution on $U$ is the law of a random vector $X=(X_1, \ldots, X_n)$ taking values in $U$ and such that the coordinates of $X$ in one ($\iff$ in any) orthonormal basis of $U$ is a random vector made of $d$ independent standard normal...
I'm not too great at statistics, so apologies if this is a simplistic question. I am fitting a curve to some data, and sometimes my data best fits a negative exponential in the form $a * e^{(-b * x)} + c$, and sometimes the fit is closer to $a * e^{(-b * x^2)} + c$. However, sometimes both of those fail, and I would li...
I want to visualize the results of a clustering (produced with protoclust{protoclust}) by creating scater plots for each pair of variables used for classifying my data, colouring by classes and overlapping the ellipses for the 95% confidence interval for each of the classes (to inspect which elipses-classes overlap und...
I have a multiple regression problem, which I tried to solve using simple multiple regression: model1 <- lm(Y ~ X1 + X2 + X3 + X4 + X5, data=data) This seems to be explaining the 85% of variance (according to R-squared) which seems pretty good. However what worries me is the weird looking Residuals vs Fitted plot, see...
Suppose we have a correlated outcome $\mathbf{y}$ and a bunch of predictors $\mathbf{X}$. For some reason, we know the variance/covariance matrix of the error term $(\epsilon)$, say $\mathbf{V}$. In this scenario, it is reasonable to utilize the Generalized Least Squares. Through Cholesky decomposition, we can calculat...
Let's say a bank has 5 different types of deposits. One type is certificates of deposits (CD), and the other 4 types are different checking and savings account products with various interest rates levels. The deposit mix represents the sum of the % of deposits allocated to each of the 5 product types. That sum obvi...
In the game of poker, how do we test $H_o : \textrm{winrate} > 0$? Or how can we test $H_o : \textrm{winrate} = x$ for $x \in \mathbb{R}$? Winrate might be measured as the population $ profit per hand. If we think of the average player's profit graph as something like a Wiener process then something that looks very goo...
I am working on a linear regression problem with Gaussian and sigmoid basis functions. My data set is very large, say a total of 15K inputs with each input having 46 features. I have divided my data into three sets as usual Training, CV and Test. By plotting the ERMS vs Degree of Polynomial for all three sets I chose t...
What are some non-uniform random number generators not relying on uniform random number generators? Are some of them for general non-uniform distributions, or are all of them for some particular non-uniform distributions? Thanks!
As a validation study, I use two libsvm-based svm classifier against the same data set. One classifier is libsvm implementation in Rapidminer. Another classifier is Libsvm itself. Both of them assume the same parameter setting. However, the prediction score of these two classifiers are different. What might be reason...
Is it possible for a binary classifier to have a recall of 0.0 for one of the classes and at the same time an area under the ROC curve (AUC) of 1.0 for the same class?
Let's say I'm polling for a binary election in different states with known biases. Furthermore, let's say I only manage to poll only a small sample of people in each of these states. How would you combine the results to come up with the best estimate for the election? My best guess is the normalized vote is: $$ \sum_...
A person from group A has 20% chance of having some characteristic A person from group B has 30% chance of having the same characteristic How can I calculate the probability of a person belonging to both groups having the given characteristic? edit Since a number of people pointed out that it's impossible to know, I'll...
I am trying to understand the concept of conditional likelihood in the context of logistic regression. One paper I am reading defines $L(\theta; y|x) = f(y|x; \theta)$, then goes on to point out that there may be different distributions $f(y|x; \theta)$ for every different $x$, and also that these different distributi...
I have conducted an IRT analysis with Conquest in order to compare two models (1-dimensional vs. 8-dimensional) applied to a given data set (41 items of a questionnaire, N=195). Comparing the deviance scores (as well as resulting AIC/BIC scores), I know that the 8-dimensional model is superior in a relative sense. How ...
I have a model class $M$. Each $\theta \in M$ defines a probability distribution $p(x,y | \theta)$ such that $x \in A$ and $y \in B$. I am interested only in probability distributions of $\theta$ such that their support is contained in $A_0 \subseteq A$ and $B_0 \subseteq B$ -- other distributions that are not of this ...
If you have a 100x100 grid of values and you want to report the standard deviation of an area that takes up a 20x20 portion of the grid, this is not problem. But what is the correct way to calculate the standard deviation of the 20x20 area if all the values in the 100x100 grid are themselves averages and therefore also...
If we take the logarithm of the Cobb-Douglas production function, we get: ln(Y)=A+$\beta_1$ln(L)+$\beta_2$ln(K)+$\epsilon$ln(e) I understand that in the production function, the coefficients $\beta_1$ and $\beta_2$ are output elasticities of labor and capital. What would be the interpretation of these coefficients in t...
In epidemiology, we often deal with lots of factors associated with disease. This multitude of factors makes plots of effect sizes (often hazard ratios) of individual factors confusing. Accepting some oversimplification, factors can for the most part be reasonably assigned to some group like nutritional, lifestyle, soc...
I would be grateful if somebody could assist me with the questions below This is for my dissertation (I am relatively new to SPSS and indeed to statistics). I have a small set of cases (N=41) of companies who took my questionnaire. There are 2 5-point Likert scale sets of questions: - one set is intended to determine w...
I want to verify using a bootstrap approach the hypothesis about a lack of the intervention effect within a group of six patients: pre-(X) post(Y) intervention measurement. My data ID X Y 1 9.856 8.992 2 19.512 4.573 3 1.936 1.572 4 14.575 1.529 5 8.476 12.000 6 1.862 1.417 Within R (2.15.1) Ive wri...
I have a GLMM with Poisson distribution and random spatial block. My experimental design is 2x2 factorial, with 4 blocks, resulting in 16 total data points. Here is the specification of the model in R using the lme4 package. lmer(rich ~ morph*caged + (1|block), family=poisson, data=bexData) When I call summary ...
Possible Duplicate: How can adding a 2nd IV make the 1st IV significant? For two of my main variables, the bivariate correlation coefficients (with the outcome measure) are non-significant (variable $A$ is $-.15$ with the outcome, and variable $B$ is $.04$ with the outcome, $p>.01$ in both cases). However, when ente...
I can't seem to get my head around this: A random drawing will be held for which there are 900 tickets sold, for which there will be one winning ticket drawn. If you purchased 25 tickets, what is the probability that you will win. I am pretty sure this follows a binomial distribution, but I don't know how to adopt the...
I'm modelling a time series data using ARIMA. Now, I'm trying to test for the serial correlation of my model SARIMA(1,1,1) using the durbin watson test. My problem is that I don't know what linear model I would put on the formula of the dwtest function in R. Here's the usage of the function, dwtest(formula, order.by = ...
I'm a new user of mixed models and through the material I've been reading there are always probability values (p>t) or (p>z) that estimate the importance of a level of a factor in the model. However, when using the lmer() function in R, which supposedly gives you those probabilities, I simply don't find them. Here is t...
I have a model: $y=a+bx+\varepsilon_1$ for each observation (tree) $b=c+dz+\varepsilon_2$ for each forest (group of trees) $y$, $x$, $z$ are continuous variables. $a$, $b$, $c$, $d$ are coefficients. $z$ is a property of forests (not individual trees). Error $\varepsilon_1$ is normally distributed and varies by tree. E...
Is there such a package that provides for zero-inflated negative binomial mixed-effects model estimation in R? By that I mean: Zero-inflation where you can specify the binomial model for zero inflation, like in function zeroinfl in package pscl: zeroinfl(y~X|Z, dist = "negbin") where Z is the formula for the zero infl...
For two $n$ dimensional multivariate normal distributions $X_{1}\sim N\left(\mu_{1},\Sigma_{1}\right)$ and $X_{2}\sim N\left(\mu_{2},\Sigma_{2}\right)$, the Kullback-Leibler distance is given by $$KL=\frac{1}{2}\left(tr\left(\Sigma_{2}^{-1}\Sigma_{1}\right)+\left(\mu_{2}-\mu_{1}\right)'\Sigma_{1}^{-1}\left(\mu_{2}-\mu...
This might be a question for the programmers, but I thought I would ask here first. Im comparing browsing pressure on plants between sites. Ive a value to indicate Browsing Pressure and count data of trees that have been damaged between locations. Ive been using Crawleys R example (page 574) regarding sex ratios and...
Possible Duplicate: Weighted geometric mean vs Weighted mean I searched for the differences between WHM and WGM. When to use each of them? when not?
What are the assumptions of the Games-Howell multiple comparisons procedure? Please back up any answers with references.