instruction
stringlengths
9
38.7k
I have a noisy readout of a curve that is monotonically increasing or decreasing for a narrow range of points and then quickly saturates. I don't know exactly where the saturation point is, but from the underlying (biological) process I know that it exists and once it's reached, strong deviations from a flat line are v...
This is a simple question on Bayesian spatial modelling via conditional autoregressive modelling. What is, according to your judgement (and possibly some methodological source), the minimum number of regions for which CAR is suitable? Would you say that with a low number of regions, say 9, it is highly advisable to us...
Please consider the following excerpt from "Measuring and Explaining Competition in the Financial Sector" by Bikker and Spierdijk (2008): "In many economic theories, competition is related to the (relative) size of a mark-up on the cost price as a component of the output price. However, data on the price-cost margin...
I have 2 studies looking at the patient response to the same drug. Study 1 found 10,000 genes expressed above the background and 500 of them are differentially expressed and referred to as the drug response signature. Study 2 found 1,000 genes representing the drug response signature. The overlap between the two signat...
I have two sets of time series data for 36 months. It contains seasonal trends with a 12-month cycle. How to determine whether it is a good model? The smaller the AIC, the better the model? Do I need to do any transformation before using auto.arima? As I find in google that auto.arima has already dealt with seasonal ...
Where can I find the formula for the conditional multivariate normal distribution. I know is normal, but what are the parameters? Specifically I want: $$f_{m,h,w\mid e} = \frac{f_{\varepsilon }\left( \varepsilon ^{Y},\varepsilon ^{e},\varepsilon ^{h},\varepsilon ^{w}\right) }{\int f_{\varepsilon }\left( z^{Y},\varep...
I am reading the book "regression estimators" by Gruber 2010 where he uses this technique to compare Ridge Regressors, however he concentrates on deriving the mathematical results without giving any empirical results/examples. Question: I am eager to read empirical type papers where these information geometry techniqu...
On p170 of Gruber's "Regression Estimators" 2010, he shows that the Liu estimator has a smaller bias than the ordinary ridge regressor but also a larger variance. So when the signal to noise ratio is compared i.e. (Bias)^2/Variance the Liu estimator has a lower signal to noise ratio. However this seems odd to me, choos...
Generally I have seen that pre and post intervention tests are applied on the same sample from a population undergoing an intervention. e.g. same set of students may be tested in an educational intervention in both pre and post tests. Would it be valid to test different random samples in both the pre and post test (usi...
I wonder what the difference between multivariate standard normal distribution and Gaussian copula is since when I look at the density function they seem the same to me. My issue is why the Gaussian copula is introduced or what benefit the Gaussian copula generates or what its superiority is when Gaussian copula is not...
Suppose we have an outcome variable $y_{ji}$ which is a count of behaviors performed by group $j$ in round $i$, for $j = 1,...,n$ and $i = 1,...,8$. The outcome $y_{ji}$ counts are non-independent within each group $j$. Possible values for $y$ are bounded between 0 and 12, and because the behaviors appear to follow an ...
This could be a pretty basic question, I'm a little rusty on my stats knowledge. Background: I am monitoring website load time performance. To do so, I have a script running and capturing data points (About 400) on load time through various Agents. Every Agent is located in different geographic locations, but they mea...
I'm quite confused with the difference between taking the average of more samples and taking the average of a sample with more observations. Do you get unbiased estimates by taking more sample of more observations?
I'm working on an algorithm that takes in a vector of the most recent data point from a number of sensor streams and compares the euclidean distance to previous vectors. The problem is that the different data streams are from completely different sensors, so taking a simple euclidean distance will dramatically overemph...
Given a joint probability distribution over the variables $X_1,X_2,\dots,X_n$. Is there an algorithm for constructing the corresponding Bayesian Network?
OK, so here's a simple problem: Suppose I roll a D6 one hundred times. What is the probability of any number appearing exactly 50 times? Now, the probability of rolling 50 ones is presumably given by the number of 100-roll sequences that contain exactly 50 ones divided by the total number of possible sequences. But I c...
What is a good explanation as to why you wouldn't have to integrate to find the posterior when you use a conjugate prior. Most examples (like for instance: http://www.youtube.com/watch?v=0XD6C_MQXXE) multiply the prior times the likelihood and end with 'look how nice the (unscaled) posterior is of the same distribution...
From Jun Shao's Mathematical Statistics Definition 2.10 (Consistency of point estimators). Let $X = (X_1 , ..., X_n)$ be a sample from $P ∈ \mathcal P$ and $T_n(X)$ be a point estimator of $θ$ for every $n$. Let $\{a_n\}$ be a sequence of positive constants diverging to $∞$. $T_n(X)$ is called $a_n$-consistent for $...
I am fitting longitudinal data with an increase in variance over time. The standard physiological model is a bi- or tri-linear model with variable breakpoints. The estimated parameters are used to describe rate of growth and time to maturity. Is there an efficient method to account for within-segment heteroscedastic e...
I am running some experiments in which I plot the values of some variable y (averaged over 4 runs) against some independent variable x. I also compare the effect of z. In other words: horizontal axis: x vertical axis: y plots: one line for each value of z I would like to know if there are any best practices or rules...
I have a peculiar situation, I am conducting research and had a group of students participate in it. I had them scored on (property) $X$ and say $n_1$ people participated. After an intervention, I measured the same property $X$ but this time $n_2$ (where $n_2 < n_1$) people participated. Now the catch is that the exper...
I am trying to automate a problem I usually solve by hand. I have a sensor that collects data from the field. Every 6 months or so, I have to do a calibration on that sensor by collecting x data points. Using a calibrated device, I measure the same data measured by the field sensor and I have the following table: ...
I've recently started studying statistical inference. I've been working through various problems and this one has me completely stumped. Let $X_1,\dots,X_n$ be a random sample from a discrete distribution which assigns with probability $\frac{1}{3}$ the values $\theta-1,\space\theta,\space\text{or}\space\theta+1$, wher...
I am working on correlating teacher factors with student achievement. How should I prepare the data set in SPSS for 130 teachers and 4000 student scores? I also have the same question with regression, should I input them as is or do I need to do something on my data set. I'm new with SPSS and I would appreciate any he...
I am dealing with a data set that includes rich textual data (e.g., blog entries, magazine articles, essays, book reviews, etc.) as well as a host of proprietary metrics, including numerous quantitative measures of consumer resonance. All of the textual data is in the same language and the data set sample size is appr...
The data set which I am trying to analyse is Student Test Data. I have a data of responses (either 1/correct response or 0/incorrect response) on some questions of a set of students. I have fitted a "3 parameter logistic model" for each question and then calculated the goodness of fit estimate and hence the respective ...
Each issue of the AMS monthly magazine Notices contains a "What is..." column. This column is an expository article on a given topic, e.g. "What is...Noncommutative Topology". Do statisticians have something similar?
I've tried to create three models (using R): an intercept only linear regression, a simple mixed effects regression and a by-subject effects mixed effects regression. An intercept only regression models the grand mean of a response variable plus error. In mtcars, the variable drat may be considered a response variable....
I am rather new to Matlab and never had a lot to do with statistics, so I apologize already for possibly being ignorant of quite a bit of important knowledge. It also would be nice if you could answer as simple as possible. Thanks ☺ My question is about finding the parameters of a univariate distribution. I get two set...
I try to model quasi-poisson family in bugs language, to handle overdispersion. According to Introduction to WinBUGS for ecologists, this is done by: $log(\lambda_i) = f(x_i) + \epsilon_i$ $N_i \sim Poiss(\lambda_i)$ where $\epsilon_i$ does the overdispersion. This is equivalent to scenario 8 in Lindén & Mäntyniemi 201...
Also, are the standardized regression weights equivalent to the correlation between a factor and a manifest variable? 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.p...
I have a database of time series data generated by giroscope sensor. A small part of the data is already labeled and used to fit the model. My strong assumption is that most of the samples left in this database are of the same class of movement. Can I use this data to replenish the model without manual labeling? What a...
I would like to perform an A/B Test on my website. I have basic knowledge on know how to do a basic test statistics, but I'm not sure on how to choose the sample size. In particular, if I have an event with a conversion rate (before the campaign) very very low, let's say p = 1/10^6. To apply the C.L.T. on p for a given...
Weighting in sequence analysis So far, I have scarcely found papers that address the issue of weighting for sequence analysis (using for example the optimal matching algorithm). Sequence analysis normally involves several steps: setting or calculation of substitution and insertion/deletion costs, computation of dist...
I am wondering about the correct statistical analysis for an experiment involving 2 independent variables (treatment A, 4 levels and treatment B, 2 levels) and one dependent variable (C, score). Because subjects undergo all levels of both treatments, I am assuming a two-way within-subject (repeated-measures) ANOVA (4x2...
I have a fine randomForest classification model which I would like to use in an application that predicts the class of a new case. The new case has inevitably missing values. Predict won't work as such for NAs. How should I do this then? data(iris) # create first the new case with missing values na.row<-45 na.col<-c(3,...
Can anyone give a definition for Geometric Autoregressive Process? Any specific properties? And, in what fields is this mostly applied? To add some context to the question, here is a section of the original Mathematica code that mentions the process: n = 1000; \[Lambda] = n \[Gamma]; \[CapitalDelta] = \[Sigma]/Sqrt[...
I'm not a statistician so maybe this question doesn't make sense, but here goes... I'm trying to write some code that does a 2-sided Fisher's exact test on some data that looks like this: | GROUP | SAMPLE_NUMBER | TOTAL_RESULT | BAD_RESULT | ----------------------------------------------------- | 1 | 1 ...
I am running a VAR based Granger non-causality tests. I've obtained asymptotic and bootstrap $p$ values for Wald joint test of 0 restriction on a set of lagged variables. It appears that bootstrap based models fail to reject Granger non-causality more often than the models based on asymptotic theory. My question is: Ho...
I am using the mlogit package in R to estimate a choice model, I started with the famous Yogurt dataset. library(mlogit) data(Yogurt) names(Yogurt) Yogdata <- mlogit.data(Yogurt, choice = "choice", shape = "wide", varying = c(2:9), sep=".") Yog1 <- mlogit(choice ~ feat+price , data = Yogdata...
Assume the following problem: You're deciding whether to invest into an opportunity with uncertain cost $c$ and value $v$. The cost has been estimated to be normally distributed with 90% CI between 1 and 5 million. Similarly, the value has been estimated to be normally distributed with 90% CI between 1 and 20 million. ...
Can you recommend any books, articles, essays, online tutorials/courses, etc that would be interesting and useful for an epidemiologist/biostatistician to learn about the philosophy of causation/causal inference? I know quite a bit about actually doing causal inference from an epi and biostats framework, but I would li...
I am using a survey that contains several questions about various dimensions of performance for policy research institutes. Here, performance in the policy arena is unpacked into things like: quality of research, overall ability to engage with policy stakeholders, quality of recommendations, overall support to, and...
I am currently fitting a mixed effects model to some experimental data as follows: model <- lmer(Y ~ X + M + (1+X+M|Subject), data=mydata) The meaning of the variables is not so important here, but $X$ is the predictor of interest while $M$ is a (suspected) mediating variable. All variables are continuous and measured...
I am often disappointed with PCA plots in the scientific literature. Typically PCA plots do not provide a breakdown of the variables and their weights, just something like PCA1 (70% variance explained), PCA2 (10% variance explained). How could one tell which variables are strongly loaded into a component? Are there PCA...
I've been training different observation sequences to obtain different HMMs corresponding to each observed data. Something intriguing is that I get one observation sequence represented by 1 state. What does that represent? Does this mean that it's somewhat repeating a process?
If I have a normal distribution with a given mean and variance and apply a logistic transform to it, what is the mean and variance of my transformed variable? This seems like it has to be a well known problem, but I haven't been able to find a quick reference anywhere.
I have a long time series data (running several years). I have split the data into several series, each of 1 month duration. I then perform some custom calculations on each of the 'shortened' time series and collate some robust summary stats (mode, MAD etc on my calculated data). I then want to see if there are any st...
Perhaps a very basic question but one that has me confused. Say, in a correlation table the relationship between A and the DV (B) is .351, but -.150 in the OLS model (where you have added C, D and E variables), what does this then mean? In other words: if the C to E variables not only change the coefficient of A but ev...
I'm dealing with traffic volume count data. The Poisson is a good fit for the data when I determined using chi-square test but the dispersion index is slightly overdispersed. How to deal with this? Can it be possible that the data is a Poisson fit but still it is overdispersed? If so, what does it mean? The index of ...
I am trying to run a nested logit using mlogit in R to analyze data from choices people made. There are 4 possible alternatives they could choose from, but in any given choice situation a person had to choice between only 2 of the 4 total types. I'm having trouble getting my data in the right format to run the nested l...
Why do I see my ROC curve crossing the line from (0,0) to (1,1) (i.e. the 0-1 line)? I have the following test data as a tab-separated testdata.txt file. Running my R code (given below) multiple times, I get a few ROC curves that cross the 0-1 line multiple times. What may be the possible explanation for this, other th...
If you had two models - one with a better fit, and one with predictors of higher significance - which one would you choose? Keep in mind that both models are considered a good fit. One has a 3% better predictive capabilities. And also all the same predictors are significant in both models, but in one model (with a slig...
Say one has the fatality and survivor rates of a pathogen in terms of geographical location (e.g., the latest data on the MERS-CoV). France 2 (1) Italy 3 (0) Jordan 2 (2) Qatar 2 (0) Saudi Arabia 49 (32) Tunisia ...
Suppose I carry out the following exercise with my trusty statistics software: Fit some time-series model to the data $y_1,\dots,y_t$ and calculate $\hat{y}_{t+1}$, the fore­cast of the next obser­va­tion, and the error $e_{t+1}^*=y_{t+1}-\hat{y}_{t+1}$ for that fore­cast observation. Repeat the previous step for $t=...
If there is more appropriate terminology to better phrase my question, please edit. Imagine I have a 3 sided die: two faces marked 0, one face marked 2 Whenever a two is rolled, two more rolls are to occur. How do I determine the average number of rolls that will occur? I tried figuring this out based on an explanatio...
tl;dr What is the recommended way to deal with discrete data when performing anomaly detection? What is the recommended way to deal with categorical data when performing anomaly detection? This answer suggests using discrete data to just filter the results. Perhaps replace the category value with the perctage chance o...
Let's say you have a response variable and an independent variable. Your data is measured across several levels of a categorical independent variable. One approach in analysing these data would be to use linear regression to estimate a slope at each level of the categorical independent variable. This is the approach I'...
Ensemble methodology's main aim is to somehow aggregate or summarize estimates from multiple models. In some cases this is aggregating different bootstrap estimates or Monte Carlo estimates, but others involve combining the estimates from starkly different models. When you look up "ensemble methods", especially in ESL,...
I conducted an experiment, testing three conditions with 27 participants in a repeated measures design. Since the data is not normally distributed I used a Friedman test that reported a p-value of 0.1, a slight disappointment given how much time I spent in the lab. Being disappointed but curious, I still performed Wilc...
My maths knowledge is pretty poor but I'm looking to improve on a new project I'm interested in. I have data from thousands of MMA fights/fighters including weights, height, reach etc. and I'm trying to make a calculation to predict future fights. Now I know this is probably a huge task, but I'm thinking of it more as ...
I would like to run an analysis of variance (parametric or not) with two factors; each factor having two levels. So if x, y is are the levels of the first factor and 1, 2 the levels of the second I would like to calculate whether the difference x1-x2 is significantly different to the difference y1-y2 (with $n_{x1} \neq...
I have a 2x2 experimental design. In the experiment, I also collected the participants' professional qualifications (categorical variable- yes /no). I would like to test the effect of controlling this variable on the MSE. I understand that in ANCOVA, the covariate is either an interval or ordinal variable. So should I ...
I am pretty sure it will take a few goes for me to phrase this question correctly but hopefully somebody with relevant knowledge will understand. I also hope this question actually has an answer(s) so that it becomes more than a philosophical discussion- I am aiming to be as specific as possible to avoid this. I also a...
I'm studying pattern recognition and statistics and almost every book I open on the subject I bump into the concept of Mahalanobis distance. The books give sort of intuitive explanations, but still not good enough ones for me to actually really understand what is going on. If someone would ask me "What is the Mahalanob...
I have a set of $n$ measurements, $x_i$, representing distance to a point, and want to find the mean and the standard deviation of the distance, the problem is, I don't know how to take the precision of the measuring equipment into the equation. The precision of the measuring equipment is given by the producer, say $\...
Models with stochastic trends i.e., structural time series models are useful in some instances. Firstly, it may be hard to identify multiple structural breaks in the deterministic trend when the sample size is small. Secondly, implementing endogenous multiple structural break tests is a demanding exercise. Therefore, u...
I am training a rule based algorithm (PRISM or CN.2) with n classes (y_1,y_2,..,y_n). All rules in the training RuleSet are in DFN form, like: IF t_1 OR t_2 OR ... t_m THEN y_i (terms) , where t_1 == lit_1 AND lit_2 AND ... lit_n (literals) I believe it is possible to have an instance (example) that can be classified ...
I have a (large) dataset where I know, for each observation, the departure and the arrival time of a worker (between 0 and 24, in decimal) : ID Departure_time Arrival_time 0001 07.00 08.25 0002 07.55 08.20 0003 08.10 09.75 ... ... ... I can plot th...
I have been working on a baseball model to predict success at the major league level using minor league statistics. After posting multiple threads on this site (1, 2, 3) and receiving valuable feedback, I have settled on a zero-inflated negative binomial model as being the best fit for my data. For those who do not wan...
I was digging in the scipy code for this test Wilcoxon signed-rank test (stats.Wilcoxon) and I found that in scipy they compute the sum of the ranks for the differences that are positive and separately for the ones that are negative. Then they picked the smaller one and use that as W. That is substantially different fr...
For simultaneous estimation of several parameters, the combination of LSE estimators for each parameter is usually not admissible under squared error for the vector of the parameters. For example, when estimating the mean vector $\theta$ of a multivariate Gaussian distribution $ N({\boldsymbol \theta}, \sigma^2 I)$ wi...
I would like to know if Mahalanobis distance is a normalized measure and the feature dimensions (or vector dimensions) do not affect the measure? In other words if I have a vector $ v \in \Re^n $ with an associated Mahalanobis distance $ D_v $ and a vector $ x \in \Re^m $ where $ m >> n$ and with a distance $ D_x$ asso...
Given a sample $x=(x_1, \ldots, x_n)$, what is your favorite notation for the sum of squares $\sum (x_i -\bar x)^2$ ? I like to keep $s^2_x$ for the sample variance, and I wonder whether $ss^2_x$ is a nice notation for the sum of squares. Now if there are two paired samples $x$ and $y$, how to denote $\sum(x_i-\bar x)...
I am trying to solve a problem and the results I get seem counter-intuitive. We randomly throw $n$ balls into an area partitioned into 3 bins $b_1,b_2,b_3$. The size of each bins is proportional to the probability the ball will fall in it. Let's call these probabilities $p_1,p_2,p_3$. This can be described by a multino...
I know the activation function (logistic) is linear around 0. Does this then imply a neural net should be able to approximate a GLM given the right bias and weights? I am currently playing in R with a simple model y~x1. The GLM performs well out of sample, yet the nnet with 1 hidden variable does poorly. What am I mi...
I'm interested in the effect on beta estimation of including/excluding independent variables in linear regression. I've made this data below: set.seed(50) predictor1 <- rnorm(10, 3, 1) predictor2 <- rnorm(10, 6, 1) I've also simulated a model using these data, with an intercept of 2, a beta of 50 for predictor1 and a...
I have a data set of about 40 subjects, and 10 variables, some measuring performance on a task, and some measuring some characteristic. Each of the performance variables consists of the proportion of correct responses (range 0 to 1.0) to some set of questions. The characteristic variables (such as verbal IQ) are ordina...
For some reason, I can't seem to find the formula for prediction intervals in ridge regression anywhere. I know that the coefficient estimates are biased, but are the predictions (dependent variable) biased as well?
I have a made a linear mixed model using lmer(). I began with a maximal model containing 6 terms and all two-way interactions (15 total), I also have a random effect of subject ID. Of these terms, 11 interactions were significant and so were kept in the final model. I found this by dropping interactions and comparing...
I've scraped a set of data, and I was wandering what the best way to start analyzing it was. My initial thoughts were to use a multi y axis graph, like this: The reason I was thinking about a multi axis graph was because if they were using the same axis some of the data would be way overstretched for the axis. That i...
Say we have a nasty probability distribution like, $$ P(x) = \frac{P^*(x)}{Z} $$ where we can easily compute $P^*(x)$ for a given $x$ but not $P(x)$ because partition function $Z$ is expensive to compute. There are approximation techniques like Monte Carlo which can be used to estimate the expectation of functions unde...
I'm interested in finding out a method for generating correlated, non-normal data. So ideally some sort of distribution that takes in a covariance (or correlation) matrix as a parameter and generates data that approximates it. But here's the catch: the method I'm trying to find should have the flexibility to also contr...
I'm using a free version of Bayesian network software called Netica. It allows only 15 nodes for the free version. Do you know any other software or R package that generate a kind of graph below using a dsc file? I know R package called bnlearn has a function read.dsc for dsc files, but am not sure how to make a graph...
Where can I get an explanation of the procedure used when making a prediction using SVD? Let me elaborate a bit more. Suppose you have data in a matrix $A$ containing two classes. In particular, you could have $m$ attributes and $n$ objects. Half of the objects belong to the first class and the other half belong to th...
Firth's penalized maximum likelihood estimates, exact logistic regression and Bayesian logistic regression (e.g. bayesglm) can account for separation in logistic regression. But how to account for probability weights and complex survey designs in these methods (e.g. in R or Stata)?
Consider a case when I have data that has $n$ dimensions and I want to transform this data into $n-1$ dimensions. For this problem in PCA we project all data points to a $n-1$ dimension plane preserving the variance. If I draw a hyperplane using SVM (that will be a $n-1$ dimension plane) and project all data points to...
I have a data set, total_data and I applied a model to it. For instance, the model has one parameter $\beta$, and I calculated the log-likelihood of the fitted model (using maximum likelihood method). In the mean time, I have a stratification variable that could divide total_data into two subsets: high_risk_data and lo...
I want to do some regression analysis that constrains the coefficients to vary smoothly as a function of their sequence. It is similar to the "Phoneme Recognition" example in the part 5 "Basis Expansions and Regularization" of The Elements of Statistical Learning (Hastie, Tibshirani & Friedman, 2008). in the book it sa...
What is the relation and difference between repeated _measures design and longitudinal study? The repeated measures design (also known as a within-subjects design) uses the same subjects with every condition of the research, including the control. For instance, repeated measures are collected in a longitudinal study ...
Estimating an OLS model with a single dummy variable in Stata, the constant is exactly equal to the mean of the dependent variable when the dummy is equal to 0. When estimating an OLS model with two dummy variables in Stata, the constant is no longer exactly equal to the mean of the dependent variable when the dummies ...
My task is to to forecast business data without advertising and compare the real observations (with advertising effect) to the forecasted values in order to measure the effect of advertising. I am confused as to whether I should use the confidence limits of the predicted values or the prediction limits to calculate sig...
I have 2 samples, which I got by conducting a 5-point Likert scale survey. I have 9 results for group A and 17 results for group B for 12 variables. I would like to test now if the groups differ significantly in one or more of these variables and chose to employ the t-test. Assumptions for the t-test are 1. Interval sc...
I have a set of general conditions A, B, C, D, E and F to solve a problem. Each of these conditions lead me to different number of experiments according to a parameter that i change in each general condition: condition A has 6 experiments condition B has 24 experiments condition C has 28 experiments condition D has 5 ...
I have a hypothesis such as "People consult internet before making a purchase decision" for a thesis research. In order to test it, I created a game where people had the option to consult "internet option" or not. I have a similar questions, but I have now realised that all my variables for this particular point are no...
I will have data not too dissimilar from this: I'd like to match the density with a set of (truncated) normal distributions and one underlying uniform distribution. I know where the spikes are, these are my means for the normals, but I don't know what the variances are. Sort of like this decomposition of a similar dat...
I am using the gls function from nlme to fit a fixed-effects model yet correct for spatial autocorrelation. My dataset has about 100,000 unique geographic observations, and running the following functions takes days on a R 64-bit edition installed on a quad-core Intel i7 3.4GHz CPU: fit <- gls(frm, data, correlation = ...
I ran regression analyses using SAS with two different data sets containing different individuals but exactly the same IV and DV: let's call them "low_deviance" and "high_deviance" and I would like to assess, whether there is a significant difference in the predictive power of the IV. Probably there is no such differen...
I have data from raters who each provided two ratings for a large set of categories. They were asked to rate how coherent each category was on a scale of 0 (members totally dissimilar) to 9 (members highly similar) and they did this twice: first, deciding if the category members had similar sizes, and, second, whether ...
I've tried to simulate data for a power analysis of a logistic regression. The results of the power analysis look reasonable: power=90% for a sample of 6000 persons. But I feel that the analysis lacks something. So, my question is: when generating the data should I include something about how the variables are correlat...