instruction
stringlengths
9
38.7k
In the IID case, it is known that all order statistics are positively correlated.* Thus, we know that $$\text{Cov}(X_{(i)},X_{(j)}) \geq 0.$$ Is this known in the INID (independent, non-identically distributed) case? If it is not known, how could this be proved? If it does not seem true, what would be a counter-exa...
How can I put the arrays of a matrix in double $$ in R?
I am trying to convert state-level poll results for 2012 U.S. presidential election into state-level probabilities of each candidate winning. To achieve that, I am using the logistic function, which conveniently goes to 0 or 1 as poll results deviate from 50%, and also makes the probability of each candidate winning a ...
Effects of growth hormone (GH) replacement with recombinant human GH on bone and mineral metabolism were studied in 36 GH-deficient children. Several outcomes, including serum ionized calcium levels, were assessed at pretherapy (zero months) and 1, 3, 6, 9 and 12 months after the beginning of therapy. Simple linear reg...
Anyone got library or code suggestions on how to actually plot a couple of sample trees from: getTree(rfobj, k, labelVar=TRUE) (Yes I know you're not supposed to do this operationally, RF is a blackbox, etc etc. I want to visually sanity-check a tree to see if any variables are behaving counterintuitively, need tweak...
I'm following an undergraduate course on timeseries using OxMetrics and wanted to reproduce som results in R Estimating an ARMA(3,3) model: arima(temp,c(3,0,3)) using stats package and also TSA package results in following error: Error in arima(temp, c(3, 0, 3)) : non-stationary AR part from CSS Tried to use ML-met...
I want to test if two regression coefficients from two separate regressions are significantly different from each other. In particular I want to test from the model $$ \begin{aligned} x1_{(t)} &= \mu1 + a*x1_{(t-1)} + b*x2_{(t-1)} + e1 \\ x2_{(t)} &= \mu2 + c*x1_{(t-1)} + d*x2_{(t-1)} + e2 \end{aligned} $$ if $H0: b=c...
Possible Duplicate: Comparing two classifier accuracy results for statistical significance with t-test I coded two Naives Bayes Classifiers (using different features of the same data) and used incremental k-fold cross-validation. As output I have computed (for each of the two NBC): For each k training set sizes: Ave...
I have a cohort of patients with different length of follow-up. So far I´m disregarding the time aspect and just need to model a binary outcome-disease/no disease. I usually do logistic regression in these studies, but another collegue of mine asked if Poisson regression would be just as appropriate. I´m not that into ...
Given a regression model of the form: $$y_{i} = \beta_{0} + \beta_{1}x_{i}$$ The least squares estimators for $\beta_{1}$ and $\beta_{0}$ are given by: $$\hat{\beta}_{1} = \frac{\sum x_{i}y_{i} - n\bar{x}\bar{y}}{\sum x_{i}^{2} - n \bar{x}^{2}}$$ and $$\hat{\beta}_{0} = \bar{y} -\hat{\beta}_{1}\bar{x}$$ In addition, $\...
I am trying to create the formula object for coxph() manually, as I want to reproduce it in RSRuby. Note that the response variable needs to be a Surv object, the output of the Surv() method. The Surv object is basically a matrix with columns time and status. Now, I am doing the following: length_of_stay <- c(13, 4, 5...
Possible Duplicate: How does the standard error work? Let's say I have an unbiased estimator, which is the sample mean, to estimate $\theta$. When can you say that $$VAR[\overline{X}] = \frac{\sigma^2}{n} $$ ? If so yes, if not: when is this true?
For a long time now, I have been thinking about working with neural networks and genetic algorithms. I have never been able to decide whether it makes sense to start writing my own code, or to reuse the many, many options made by others. In my experience, assuming the programmer knows what he or she is doing to a reas...
There exist an image dataset referred to as COIL-20. There are several paper that describes different dimensionality reduction methods and apply them to produce a 2d plot of this dataset. These pictures often contain one or several "elliptic" shapes. Is there any particular explanation for this? If yes, can we extend i...
I've been wondering about this one for a while; I find it a little weird how abruptly it happens. Basically, why do we need just three uniforms for $Z_n$ to smooth out like it does? And why does the smoothing-out happen so relatively quickly? $Z_2$: $Z_3$: (images shamelessly stolen from John D. Cook's blog: http://...
Let $X_1, X_2...X_n$ be iid with $f(x,\theta)=\dfrac{2x}{\theta^2}$ and $0<x\leq\theta$. Find $c$ such that $\mathbb{E}(c\hat{\theta})=\theta$ where $\hat{\theta}$ denotes MLE of $\theta$. What I have tried: I found the MLE of $f(x;\theta)$ to be $\max\{X_1,X_2\cdots X_n\}$ (which aligns with the answer at the back) b...
I have two separate time series, indexed by time in nanoseconds. They both measure the same thing but because they come about in two completely different ways, the number of observations they each give are not only irregularly spaced but are also different in number and don't align. Even the time is on different clocks...
in a one way anova F test when F=37.45; df1=5; df2=40 what is the P value? I tried several software, and the result is <0.0001. I know it sounds weird that I need a really small number of possibility. However, I really need it for a publication. I greatly appreciate if anyone can help on this issue. Please let me know ...
I came across a paper related to Bayesian decision theory where the absolute loss function is introduced somewhat straightforwardly. This is part of the result. $\frac{\partial}{\partial a}\int_{-\infty}^a (a-\theta)\! f(\theta|y) \, \mathrm{d}\theta$ = $\int_{-\infty}^a \! f(\theta|y) \, \mathrm{d}\theta$ = $Pr(\the...
I have tested male and female participants in one visual search task. The task included 3 different types of displays (1 factor, 3 levels); meaning I have 3 means for each male or female participant. So the design is 2 (gender: f/m) x 3 (RT: M1/M2/M3). Is this analysis called a repeated measure ANOVA?
I'm looking at a variable that has two options: "Presence of Condition" has two headings "Yes" and "No" with large numbers of both. I'm trying to figure out how to consolidate both so that I can have one variable "Presence of Condition" and use that data to correlate with other variable. I'd have to separate the correl...
I'm actually working on an information retrieval project, and I want to extract words that are of significance from a sentence. This is somewhat opposite to stopwords. In a sentence like: He was a great astrologer and an orthodontist. ... I want to extract out words that might be of more importance. To do this, I would...
I am empirically checking Fama & French three factors (market, SMB, HML - independent variables) model on a Viet Nam stock exchange. The dataset is daily stocks' return during almost 4 years. The stocks are grouped in six portfolios - each is dependent variable in each regression. I would like to test the validity of F...
I have two samples as follows: conjps <- c(9.41,10.45,10.78,10.73,11.11,11.12,11.59,11.04,11.63) ms <- c(4.11,5.10,5.70,6.46,6.04,6.16, 6.24,6.32,7.33) I want to test if the change of sample is the same to the another one. conjps_ch <- c(1.04,0.33,...) ms <- c(0.99,0.60,0.76,...) Which test I should use, and which co...
It's quite common to use heat/contour maps when presenting time-frequency EEG findings. The colour scheme often chosen (and one that I like and use) is the "jet" colour scheme (see e.g., google image search time-frequency EEG). I'm wondering if there are any better colour schemes for presenting these plots, and/or guid...
I was reading some lecture notes on simple linear regression where one section said that when the slope is 0 (hence, $H_0: \beta = 0$ is actually true), $\frac{(SSY - SSE)}{(DFY - DFE)}$ estimates sigma squared. This doesn't make sense to me. If beta is actually 0, then shouldn't SSY and SSE be the same value? $$SSY =...
I am currently looking at continuous data and seeking a correlation with the presence (and severity, ie, normal, mild, moderate, severe) of a disease entity. Now, so far, running Spearman on SPSS, I've gotten an R of 0.370, p<0.001. I need help on a couple of things. Can/Should I perform a multinomial regression analys...
There is a blind test that asks participants to distinguish Coke and Pepsi. A participant will test 6 cups of drink and tell whether it was Coke or Pepsi. Assuming that the participant can tell the difference between them, though not perfect, if he judged that the first three were all Coke, then he would think it is ...
I'm implementing a permutation test for a test statistic with unknown distribution. Apart from my concrete situation (see below), I'd like to know first If and under what circumstances permutation tests might inflate the type I error, that is, in what kind of situations they may produce anti-conservative results? In...
I am confused. I don't understand the difference a ARMA and a GARCH process.. to me there are the same no ? Here is the (G)ARCH(p, q) process $$\sigma_t^2 = \underbrace{ \underbrace{ \alpha_0 + \sum_{i=1}^q \alpha_ir_{t-i}^2} _{ARCH} + \sum_{i=1}^p\beta_i\sigma_{t-i}^2} _{GARCH}$$ And...
How do you explain that ? There's only one operator but the mixed model returns an estimate for the operator random effect. Furthermore the sample effect is confounded with the interaction sample:operator. Below is the R code. > dd sample operator y 9 10 SCF 0.9153188 10 10 SCF 0.9884982 1...
I fit the following linear model using OLS, where $X_{5}$ and $X_{6}$ are both dummy variables and the rest are continuous: $Y=\beta_{0} + \beta_{1}X_{1}+ \beta_{2}X_{2} + \beta_{3}X_{3} + \beta_{4}X_{4} + \beta_{5}X_{5} + \beta_{6}X_{6} + u$ If I want to test a simple contrast, say that $\beta_{5}$ = 0 I can do the ...
I'm trying to obtain robust standard errors as my regression residuals seem to be correlated... My sample data has 8 countries and I would like to cluster the standard errors by these 8 countries using SPSS... I have read that you can use STATA to do it but I only have SPSS installed in my laptop.. help.. does anyone k...
In Statistical Decision Theory, one often studies the following two measures (from "The Bayesian Choice"): Average loss (aka the frequentist risk): $R\left(\theta,\delta\right) = \mathrm{E}_\theta\left[L\left(\theta,\delta(x)\right)\right] = \int_X L\left(\theta, \delta(x)\right)f(x|\theta)dx$ Posterior expected loss: ...
I stated a number of hypotheses and conducted a questionnaire. Only after the questionnaire it appeared I skrewed up with the questions. These questions don't actually allow me do reject or retain the set hypotheses. So my question is what do I do? Do I reject or retain?
I am facing the evaluation of two text classifiers. I have a large training dataset (to be used for training only), and a separated small test set (to be used for testing only), both being balanced. Which one of the following methods should be most appropiated one and why? 1) Stratified Repeated held-out evaluation (re...
I'm looking for a data set that is easily accessible for comparing Kernel Logistic Regression (KLR) and regular logistic regression. All the paper that I find using KLR use synthetic data sets. I'm most interested in data sets with continuous variables, so I can apply the squared exponential kernel. Data sets with a ...
I wish to to some simple hypothesis testing of the form provided by T-Tests and ANOVA. However, my data is not normally distributed (it follows a Pareto distribution). My understanding is that T-Tests make the assumption that the data is normally distributed and hence I won't be able to use them - is that correct? Is t...
I have a logistic regression model with a dichotomous response variable and predictors coded from $1$ to $10$ and from $0$ to $18$. When I fit the model, I get these results: Intercept 2.467 (p=2e-16) Predictor#1 -0.181 (p=1.76e-07) Predictor#2 -0.098 (p=3.34e-14) Null deviance 2252.3 on 1741 DF Residual dev. 2...
I'm currently attending the An Introduction to Operations Management course in Coursera.org. At some point in the course, the professor started to deal with variation in the operations' time. The measurement he uses is the Coefficient of Variation, the ratio between the standard deviation and the mean: $c_v = \frac{\s...
I am looking for a nice and formal way to define moving averages : $y = \sum_{i=0}^N w_ix_i=<\mathbf{w},\mathbf{x}>$ and especially the fact that weights have to equal one, i.e. $\sum_{i=0}^N w_i=1$. This property seems quite obvious to me, as you somehow want the output to have the same "level" as the input values...
I am trying to build a model where the response is a proportion (it is actually the share of votes a party gets in constituencies). Its distribution is not normal, so I decided to model it with a beta distribution. I also have several predictors. However, I don't know how to write it in BUGS/JAGS/STAN (JAGS would be m...
Possible Duplicate: Optimising for Precision-Recall curves under class imbalance I built a classification model and tested it against a validation data set. The positive set is composed of 86 cases and the negative set is composed of 1256 cases. The confusion matrix is as follows True positive ...
Can a confounding variable be correlated with the DV and not the IV? I have heard of the DV being corr. but I can't find IV in any textbooks. I found this definition in Wikipedia: http://en.wikipedia.org/wiki/Confounding
Possible Duplicate: Prediction results for two response variable from random forest I use randomForest R package to do regression rf = randomForest(A + B ~ C + D, data, ..). I want to know what are prediction values for A and B, and use predict(rf). The output is an aggregate value instead of two values for A and B....
I am trying to do an ordinal logistic regression (ordinal outcome variables with more than 2 categories) with nominal (more than 2 categories for some) predictor variables, as well as nominal (more than 2 categories for some) covariates/moderators. First of all, I would like to test for effect interaction to see which...
Can anyone suggest the statistical tools to compare CART, conditional inference tree, and random forests? I use these three algorithm for regression analysis and want to choose the better one.
I'm trying to implement the "Free Step-Down Resampling Method" described by Westfall and Young in "Resampling-Based Multiple Testing" (algorithm ~2.8 in the text). My goal is to perform a multivariate linear regression. So, I have an error estimate (from the original sample) like this (using OLS): $\epsilon = Y - (\b...
A single observation of a random variable having a geometric distribution is used to test the null hypothesis $\theta=\theta_0$ against the alternative hypothesis $\theta=\theta_1 > \theta_0$. If the null hypothesis is rejected if and only if the observed value of the random variable is greater than or equal to the po...
Given a sample of n units out of a population of N, population median can be estimated by the sample median. How can we get the variance of this estimator?
I am interested in examining the association between cardiorespiratory fitness and PCA derived dietary pattern scores in 264 adolescents. My cardiorespiratory fitness predictor is vo2max, and my outcomes are a "Treat Foods" pattern and a "Fruit and Vegetable" pattern. Both vo2max and my pattern scores are continuous va...
I am fitting a logistic model to data using the glm function in R. I have attempted to specify interaction terms in two ways: fit1 <- glm(y ~ x*z, family = "binomial", data = myData) fit2 <- glm(y ~ x/z, family = "binomial", data = myData) I have 3 questions: What is the difference between specifying my interacti...
I have a couple question that have arisen studying Weighted Least Squares from Woolridge, all centering around corrections for heteroskedisticity in cross sectional data. Woolridge first shows an example of weighted least squares assuming the variance function is known. He divides the equation $$sav_{i}=\beta_{0}+\bet...
I am having a bit of confusion. I was reading this paper where it explained that bagging technique greatly reduces variance and only slightly increases bias. I didn't get it how come it reduces variance. I know what variance and bias is. Bias is the inability of the model to learn the data. Variance is something simila...
What's the statistical strategy to compute 2 month's ahead sales forecasts? I'm trying to build a chart for some software I'm creating. Piecemealing this together with a lot of thought, it appears that I'm faced with: Seasonal Delta (SD) Sales often tend to be seasonal, no matter the business. If sales went up or down...
Consider the cross sectional: $Y_i = a + b X_i + e_i$ where I have reason to believe that $E[e_j e_k] \not= 0$ for a concerning number of $j\not= k$. What happens if I use a serial correlation robust standard error here (such as Newey West)? Is it okay to do so even though, of course, I have no serial correlation in m...
I'm currently working for EEG signal classification from 3 electrodes. I want to have a simple feature selection algorithm that is independent with the classification process. From the feature extraction step, let's say I have this kind of matrix now (not the actual numbers/data) : A CLASS : $$ Ch_1 = \begin{vmatrix}...
I have a dataset of about a million companies containing their names, total employees and annual sales. I want to come up with a function that when given the company returns the 5 most similar companies in terms of their distance in total employees and annual sales. I thought of doing k-means clustering on the dataset ...
I'm relatively new to A/B split-testing and can't wrap my brain around the idea of z-scores. I know that a z-score gives one an idea how statistically significant the result is that one gets from a split-test. However, I found quite a few websites that explain A/B split-testing without talking much about sample sizes. ...
I am trying to get some bootstrap CIs for coefficients obtained by robust regression. I have influential values and thus switched to rlm. The data are clustered and within clusters, the variance of my DV ("Durchlässigkeit") = 0. Is this all sensible for my clustered data? > dput(d) structure(list(Porenfläche = c(4990L,...
I've found a paper which introduces the multidimensional (bivariate here) version of the boxplot - a bagplot. What is that bagplot exactly? I can see the series of nested polygons based on vertices, one of those polygons being declared as a bagplot. What is the idea of nested polygon building? Which of the polygons is ...
I created a synthetic constant image (all the pixel values are the same) on which I generated a Poisson distribution using a Poisson noise generator, with mean values set to input pixel values. Then, I applied the Anscombe transform and checked if the output distribution fit the normal distribution by using the Anders...
I've been looking over some regression models lately and I came across one which, although similar, differs from the "standard" simple linear model. I was hoping somebody could provide some assistance with some properties that I'm confused with. Assuming the regression form: $y_{i} = \beta_{0} + \beta_{1}(x_{i}-\bar{x}...
I hear it said [1] that QR makes no distribution assumptions about its error term. Question 1: Does this mean that heteroscedastic and serially correlated disturbances do not effect the unbiasedness, consistency and minimum variance property of the coefficient estimates? What about the QR standard error validity? Que...
I'm conducting biological experiments and have to normalize my raw data to the value of the untreated control in order to analyze them. This means that I have for the untreated sample something like {1,1,1,1,1} and for the treated sample something like {1.12,2.1,2.05,1.85,1.78}. How do I test if both sets are significa...
I am experimenting with a recommendation systems for articles (news, magazines etc). Is there any dataset available for the same which includes the demographic information of users as well? I am actually trying to incorporate demographic information as well in recommending, hence looking for such a dataset. I really do...
I've just been (re-)reading Gelman's Why we (usually) don't have to worry about multiple comparisons. In particular the section "Multiple outcomes and other challenges" mentions using a hierarchical model for situations when there are multiple related measures from the same person/unit at different times/conditions. I...
Settings Many algorithms operate on a single relation or table, while many real-world databases store information in multiple tables (Domingos, 2003). Question What types of algorithms learn well from multiple (relational) tables. In particular, I am interested in the algorithms that are applicable to the regression ...
I am hoping to use some self selection survey data (it's from those awful things that pop up on the start page of a website asking if you have 5 minutes to spare). This is for business decision making so obviously I don't want to overstate the importance of any findings. I have found one public access paper that deals ...
For a work that I have to document, at some point I do N resampling of the initial sample and generate N means out of them (some kind of bootstrapping). Pretty easy, however I don't know how to write it mathematically, I was thinking of something like: $\tilde x = \sum_{k\in\Gamma} x_k$ and then describe $\Gamma$ as ...
Rock tickets are sold at a ticket counter. Females and males arrive at times of independent Poisson processes with rates 30 and 20. What is the probability that the first three customers are female My Work Let $F(t), M(t)$ be the number of females, males respectively, that arrive up to time $t$. Then if I condition ...
I want to compare three sets of binary sequences and assess whether they differ statistically. Each sequence is 100 bits long (the length 0-100 represents the axis of an elongated tissue : if there is a 1 at position i, it means that a cell from that particular lineage was found at this position). The sets contain 26...
I'm creating a generalised linear regression using a binomial link function for two variables A and B. From looking at the data it appears that A/B may have discriminatory effect. Is it sensible to include A/B as an additional term in the model? Thinking about this myself, this appear term would be the inverse of inclu...
I have a 2-d Gaussian mixture model and would like to compute a confidence region for it. Our application is that the two dimensions are latitude and longitude; that is, we want to say something like "the model is 95% confident that the true point lies within this (perhaps noncontiguous) region". In other words, I thin...
I'm trying to assess the difference between two algorithms. They are stochastic, so I've run them multiple times against the same input files and noted their results. I want to determine whether my algorithm offers a statistically significant improvement over a previous approach. From my (potentially flawed) understand...
I am aware that the "prediction interval", as defined in most textbooks on linear models, is focused on the uncertainty in the model being fit and is used to estimate an output prediction range for exact inputs. However, as is normally the case, what about situations where the input isn't exact? How do you calcula...
In a panel regression using fixed effects, is it correct to use an instrument that does not vary by year? To use an old but simple example, Angrist and Kruger 1991 use quarter of birth as an instrument for education. If one had access to similar data that was in panel form, is it still correct (and I don't mean speci...
I am currently working on biomass estimates using satellite imagery. I'll quickly define the background of my question, and then explain the statistical question I am working on. Background Problem I am trying to estimate biomass over an area in France. My response is the steamwood volume density (in $m^3/ha$), which ...
If I'm not wrong, likelihood functions are sensitive to the size of the sample, i.e. the larger the sample, the lower the likelihood value. Given a sample $x$ of a random variable $X \sim f(\theta)$, and a parameter estimate $\hat\theta$, suppose I want to test the hypothesis that the likelihoods of different subsample...
I am doing multiple imputation on a database of observations on hospital patients. There is one observation of many covariates per patient. There are 2 binary outcome variables: Alive/Dead after 30 days Died in hospital, or survived/discharged Two seperate analysis models (logistic regression), with identical covaria...
Basic setup: regression model: $y = \text{constant} +\beta_1x_1+\beta_2x_2+\beta_3x_3+\beta_4x_4+\alpha C+\epsilon$ where C is the vector of control variables. I'm interested in $\beta$ and expect $\beta_1$ and $\beta_2$ to be negative. However, there is multicollinearity problem in the model, the coefficient of corre...
I remember something from a stats course many years ago which might be helpful now. I want to distinguish between patients who show symptoms all over the board, vs. patients who have similarly high sum-scores, but due to a few very high symptoms. Symptoms have a scale from 0 to 3. I remember the following procedure (i...
I'm trying to fit a multivariate (i.e., multiple response) mixed model in R. Aside from the ASReml-r and SabreR packages (which require external software), it seems this is only possible in MCMCglmm. In the paper that accompanies the MCMCglmm package (pp.6), Jarrod Hadfield describes the process of fitting such a model...
I have the following distribution, defined for $0 < x < \theta$, its value is $0$ otherwise. $$f_\theta(x)= \frac{2x}{\theta^2} $$ Find the MLE of $\theta$ I tried: $$\prod_{i=1}^n \frac{2}{\theta^2}x_i =\left(\frac{2}{\theta^2}\right)^n \prod_{i=1}^n x_i $$ Taking the natural logarithm gives us: $$ n \ln{\frac{2}{\the...
We have an exponential distribution $$f(x)=\frac{e^\frac{-x}{\theta}}{\theta}$$ We are told that $n=3$ and that the data are given as $x_1=1, x_2=2.5, x_3=5.5$ a.) Determine an approximate 95% confidence interval based on asymptotic normality of $\overline{x}$ b.) Determine an approximate 95% confidence interval ba...
I would like to learn more about the work and statistical methods performed as biostatistician in pharmaceutical companies and clinical research organizations. It seems the book "Essential Medical Statistics" (Kirkwood et. al) seems useful. In another thread I saw "Clinical Trials: A Methodologic Perspective" (Piantado...
I am reading up on significance tests but I can't quite grasp where the "number of groups" from my example fits in. When I ask 100 people which party they would vote for, imagine I get these results: Party A | Party B ----------------- 53 | 47 This could mean a tendency in favor of party A or just be coincidence....
From Wikipedia for confidence interval, there is a note for the distribution of the sample: Note that here $Pr_{θ,φ}$ need not refer to an explicitly given parameterised family of distributions, although it often does. Just as the random variable $X$ notionally corresponds to other possible realizations of $x$ from t...
Given $n$ players and $m$ baskets. Each player has random distinct label from the set $\{1, ..., n\}$. Each player $i$ selects a set of baskets $B(i)$ uniformly randomly with probability $p$. Then, each player $i$ puts a paper with his/her label in all the baskets in $B(i)$. A player $i$ win a basket $j \in B(i)$ if th...
I am a refugee from SPSS in the process of re-learning how to do everything in R. Mostly it's been fun, as R is great for a lot of things but I've run into a snag that I can't seem to find a solution for; any help appreciated. I want to run repeated-measures ANOVA with contrasts. I know linear mixed models are generall...
We’re all familiar with observational studies that attempt to establish a causal link between a nonrandomized predictor X and an outcome by including every imaginable potential confounder in a multiple regression model. By thus “controlling for” all the confounders, the argument goes, we isolate the effect of the predi...
Bags of concrete mix labeled as containing 100 lb have a population mean weight of 100 lb and a population standard deviation of 2.551 lb. What is the probability that the mean weight of a random sample of 50 bags is less than 95 lb? In solving this, I tried to use the formula $z = \dfrac {\bar x - \mu} {\frac {\sigma}...
I'm modeling a set of outcome data the depends on two parameters: time, T -100 < A < 100 I've done logistic regression using R with the command: model <- glm(Outcome ~ A + T, family = "binomial", data = myData) My expectation (the only thing that makes sense) is that when A < 0, the fit probability should be an incr...
I'm trying to run a cforest model in R with continuous and categorical variables. When I tried this in randomForest, the explained variation was ok, but there was a large bias towards continuous variables. Therefore I switched to cforest, using the codes provided by Strobl et al. This was my code: my_cforestcontrol <-...
I want to compare two samples with a Kolmogorov-Smirnov test. Wikipedia states the null hypothesis is rejected at $\alpha$ if: $\sqrt( \frac{nn'}{n+n'}) D_{nn'} > K_\alpha$ where $n$ and $n'$ are the sizes of samples, D the KS-statistic and $K_\alpha$ the critical value (probably everyone here already knows). I wonder ...
This question might probably also fit into Academia.SX. I'm writing my first paper in life sciences and I'm very often seeing asterisks as indicators for statistical significance (*). I'm wondering if there's a convention on which symbol, and how many of them are to be used to indicate what the significance is, e.g. * ...
I have a dataset in which each row belongs to one of 8 categories. I'm running a logistic regrssion on it using R. I created dummy variables for each of these categories. In my logistic regression model I know one of these dummies need to be excluded to not fall for the dummy variable trap. However the model keeps kick...
I just need a simple yes/no answer (hopefully yes) to confirm I haven't done something stupid here - I'm doing some data analysis and looking at the correlation of 2 variables X and Y over the past 6 years. My correlation over these 6 years comes out in MS Excel as 96% (that is, the usual definition of correlation as d...
I was conducting a 'recall of negative words' memory experiment with a two-way between-group ANOVA and got no significant main effects and no significant interaction! How can I go about explaining this in the Discussion section? Do I just state that it seems that my 2 between subjects factors have no influence over mem...
I have a questionnaire with ~40 questions where the respondent answers on a scale 1-7 on each question. At the moment we have a sample size of say 10,000 people. The question is how I calculate the amount of data we lose by lowering the sample size and asking 2,000 people (representative from the whole sample) instead...