instruction stringlengths 9 38.7k |
|---|
I have written a function (in R-language) to perform a Theil-Sen regression with large sample approximation (please see below). It seems to work well for the one-sided case as illustrated in Hollander & Wolfe (2nd Edition Ch. 9)
NP.lm <-function(dat, X, Y, alpha) {
dat <- dat[order(dat[,X]),]
n <- nrow(dat) ... |
Let us say that we have a process that generates sequences of the following form:
$$S=[0,0,0,0,0,0,0,0,0,0,0,0,0,\mathbf{4},0,0,0,0,0,0,0,0,0,0,0,0,0,0,\mathbf{1},0,0,0,0,0,0,0,0,\mathbf{3},0,0,0,\mathbf{5},0,0,0]$$
What is the best way to model something like this?
Since $\mathrm{E}(x)$ is small and the number of samp... |
I am working with weather forecasters and have access to historical climatology data. Given current weather conditions in an area of interest (i.e. the current "map"), we want to try to find the most similar "map" from the past data. The idea is to try and make a weather forecast by finding the best analog from past da... |
I’ve a data set contains two columns: actual value and target value. Is there a way where I can express the difference between these two columns as a single percentage value (that’s standardized, i.e., between 0-100%)? So I was wondering if I can calculate the standard deviation for the difference between values and t... |
When comparing two metrics, say visitors and time spent on a website, by just taking the ratio (time on site)/(visitors) can this be misleading? And if so how can we describe this problem mathematically or with statistics.
More context, the vanilla interpretation of such a ratio is that the "typical" visitor spends t ... |
Say that in a binary classification problem you have several negatives and only one positive.
What types of models are good to learn from this data, and predict the label for a new instance? Anything available in Python? From what I read here, scikit-learn doesn't support it.
|
The experiment: Two groups of children perform tasks with three levels of difficulty at two different time points and brain activity is measured. All of the children perform all of the tasks and do so at both timepoints.
Dependent variable: Brain Activity (BA)
Repeated measures: task (three levels), time (2 levels)
Ind... |
I have paired data (GWAS case/control study) and I have heard using conditional logistic regression or generalized linear mixed models (GLMM) is appropriate. Which should I use in this case? Why would you use one over the other. More importantly can you guys point me towards resources for doing these methods in R? I'm ... |
Problem:
The following code is to predict the last row's price
using all previous rows as a training set
** The prediction is very nice when the last row price smaller than 10, but becomes
unreasonable when the test price gets bigger.
** Same problem happens using SVM package
file <- read.csv('test.csv',head=F)
N<-nro... |
I'm trying to figure out which ICC type to use to calculate MY measurement error using a particular assessment tool:
background and data:
PhD feasibility phase only.
10 pairs of videos of people doing every day tasks. Videos were scored 3 times to assess measurement error. Videos were randomly scored purposely to re... |
I am working on monthly seasonally adjusted data. To the best of my knowledge (maybe I'm wrong), data is seasonally adjusted to take out any form of seasonality.
After doing an ACF of the second difference of my data with R, I saw a spike from the lag one point that crosses the horizontal dashed line. This led me to s... |
I'm working on a software and need to do some statistics. In my case I'm comparing two different networks that have a certain number of nodes with attributes and want to test with a Fisher's exact test if some of these attributes are enriched in the smaller one.
I also have a good math library that is able to calculate... |
I am working on a data set. After using some model identification techniques, I came out with an ARIMA(0,2,1) model.
I used the detectIO function in the package TSA in R to detect an innovative outlier (IO) at the 48th observation of my original data set.
How do I incorporate this outlier into my model so I can use i... |
I posted this to mathoverflow and no one's answering:
Scheffé's method for identifying statistically significant contrasts is widely known. A contrast among the means $\mu_i$, $i=1,\ldots,r$ of $r$ populations is a linear combination $\sum_{i=1}^r c_i \mu_i$ in which $\sum_{i=1}^r c_i=0$, and a scalar multiple of a co... |
I've been trying to use the PMF shown in an older question, found here, and sourced from here, but I've run into a problem. When attempting to calculate N, I'm finding that B (using s+i+j-x-ry = B) rapidly becomes negative when keeping more than 1 die (y>1). This, in turn, results in attempting to distribute a negative... |
In my Masters thesis I do a mediation analysis with Multiple Regression Analysis.
So I make use of the Baron & Kenny method for testing mediation. I also want to control for some variables. For example I want to know if gender has an effect on the mediation effect. What I did was to split the data file(women/ men) (I'... |
I have data sets of long term climatology wind speed data on daily basis for 1950-2000.
I have calculated the mean for every year and calculated trend pattern, it shows some positive trend of 0.05 m/s/year.
I have been asked do the statistical significance test for this trend analysis.
How could I achieve it?
|
I'm coding up a monte-carlo analysis; I've got a deterministic model that depends on parameters that are uncertain. One of those uncertain parameters is a partially-observed vector of prices by country -- I want to predict missing values in a manner similar to what is used in multiple imputation via chained equations.... |
I am running kmeans to identify clusters of customers. I have approximately 100 variables to identify clusters. Each of these variables represent the % of spend by a customer on a category. So, if I have 100 categories, I have these 100 variables such that sum of these variables is 100% for each customer. Now, these va... |
I'm using GPML (Gaussian Processes for Machine Learning) v3.2 in Matlab.
meanfunc = @meanConst; hyp.mean = 0;
covfunc = @covSEard; ell = 1.0; sf = 1.0; hyp.cov = log([ell*ones(1,size(xtr,2)) sf]);
likfunc = @likGauss; sn = .1; hyp.lik = log(sn);
inffunc = @infLOO;
hyp = minimize(hyp, @gp, -4*40, inffunc, meanfunc, covf... |
I am doing a project where I would like to predict some characteristics from large data set and I am expecting that I would should use some Machine Learning techniques, but not sure how to proceed.
I have a background in Econometrics, but I have not really done projects like this before.
I have a large data set consist... |
Instead of running a certain balanced latin square twice (if you have m experimental conditions but 2 m subjects), what would be a better approach (to cover twice as many of the possible orderings and get the maximum protection against ordering effects etc.)?
...or in general terms, what is a better alternative to runn... |
I'm currently working on cleaning/preprocessing a bunch of survey data from a collection of similar but distinct surveys. In order to combine the survey results this involves, among other things, identifying common (as in shared) questions (which might, obviously, not be identically phrased).
While the data set is smal... |
There exists an option corr.bias for making regression analyses with the R package randomForest. The manual warns “Experimental. Use at your own risk.” What does corr.bias precisely do and why can it be dangerous to use it? As far as I know the bias correction is based on a linear regression between the out-of-bag-pred... |
I am a beginner with LASSO.
Is there any way (paper/code) to perform a LASSO type model in which only some of the explanatory variables are regularized? Or imposing different regulation parameters to several explanatory variables groups?
|
The table below is extracted from Wikipedia. It shows the Pollution Standards Index (PSI) readings of Singapore.
I am trying to estimate the four missing data points (2-5am) on day 20th June. I did this by first plotting a graph of the 3-hourly readings. Then I try to derive the 1-hourly readings with the formula:
PSI... |
What is the probability of taking 15 free throws in a game and making 10 in a row given that each shot has a 50% probability of going in?
I have simulated this problem but I also want to confirm the results with an analytical approach.
This appears to be a problem that fits with the binomial distribution but the approa... |
Why the peak of density plot in the data given below is higher than 1? Shouldn't it be below 1?
x = c(0.43,0.71,0.6,0.56,0.14,0.38,0.71,0.33,0.09,0.8,0.62,0.33,0.12,0.6,0.4,0.56,0.33,0.75,0.4,0.43,0.75,0.75,0.12,0.09,0.54,1,0.46,0.33,0.33,1,0.5,0.52,1,0.25,0.2,0.71,0.6,0.54,0.75,0.67,0.2,0,0.33,0.73,0.4,0.5,0.56,0.83,... |
I am trying to apply the lasso or ridge regression to my data set for the feature selection, but different random seeds produce different models. What is a good or universal way to obtain the final model?
Fix a seed, OR
combine models from different seeds (if so, then how should I combine them?), OR
compare models ... |
I would like to inquire about a simple test I might be able to perform to determine how 'nicely Gaussian' my empirical data are. If they are 'nicely Gaussian', then I can perform some other analysis, that assumes my data are Gaussian to begin with.
I am looking for a concrete test. I have a simple 1-dimensional data ve... |
I hope this is the right place to ask, if not feel free to move it to a more appropriate forum.
I've been wondering for quite a while now how to treat non-square integrable functions with Monte Carlo Integration. I know that MC still gives a proper estimate but the error is unrealiable (divergent?) for those kind of fu... |
I am studying Kogan's "Introduction to Clustering Large and High Dimensional Data" because I would like to better understand clustering (I never worked with it). Until now "clustering" means to me to find a partition of a given cloud of data s.t. a given objective function is minimized.
Such objective function is def... |
I have fit a mixed model with lmer() and am left with 4 significant interaction terms.
There were found by removing the interaction term and comparing with the full model using anova(fm1, fm2). I have also left the single terms in the model.
When I come to report the chi-square for the single terms by removing them a... |
I am working my way through Chapter 4 (Tests) in Davison & Hinkley's (D&H's) book "Bootstrap Methods and their Applications", and have a question about one of their examples.
Davison & Hinkley's proposed test
Example 4.1 proposes a permutation test for the (alternative) hypothesis of non-zero slope in a simple logisti... |
Why do we analyze residual plot in regression analysis and NOT between two individual variables?
For example when checking for normality, heteroscedasticity etc. we don't analyze two individual variables but residual plot, why so?
|
I used regular logistic regression on my dataset and got a few significant hits. However, since the data is 1:1 case-control matched data I decided to try using conditional logistic regression (clogit() in the survival package of R).
However, none of the results are significant any more. Is this normal? I was hoping to... |
The following quote is from Montgomery's Experimental Design:
There is an important distinction between replication and repeated measurements.
For example, suppose that a silicon wafer is etched in a single-wafer plasma etching process, and a critical dimension on this wafer is measured three times. These measurements... |
In the language R there is the possibility to estimate the best $\lambda$ for an elastic net model via a cross-validation, having set the value of $\alpha$. However, being $\alpha$ defined as $\lambda_2/(\lambda_1+\lambda_2)$, where $\lambda_1$ and $\lambda_2$ are the coefficients of the penalizations for the ridge and... |
Suppose we draw a sample of $k$ out of $n$ numbered balls without replacement and get a sample of $N_1$ (unique) balls. We then replace all the balls in the urn and repeat the drawing a second time to get again $N_2$ (unique) balls.
We are interested in the set of balls that end up being drawn exactly once (over the c... |
Is there an alternative to using LDA and regression models to classify data where the response variable is assumed to have a linear relationship with the predictor? Essentially I am trying to find boundaries where the predictors change from one class to another. In the example below with 3 classes
c1 = {1,2,3,4,5,10,11... |
I have binary data on prevalence of infection (infected/all analysed) and I want to compare this proportion between groups (species and sexes).
I would like to ask if by conducting a Generalized Linear Model with binomial distribution and mean contrast pairwise comparison (with 1/0 as target variable and the groups and... |
I have a question regarding predictor variables in a GLMM analysis.
I am running a study investigating multi-modal communication in primates,
specifically, primate gestures that accompany vocalizations.
I have measured the call rate, call duration and peak frequency (response variables) for 200 calls (100 accompanied... |
I am trying to see which model fits better to an email count data.Tried to fit the count data to Poisson using chi-square test. Did not fit.
Tried to fit the count data to Negative binomial by estimating the parameter, and using the chi-square test. Did not fit, although it reduced the chi-square statistic than that be... |
I would like to know how we can determine the maximum value of standard deviation, $\sigma$.
Given a range for a population or sample, $[a, b]$ where $b$ is the maximum value and $a$ is the minimum value, I suppose there is also a range of $\sigma$ which I denote as $[0, m]$, i.e. $0 \leq \sigma \leq S$. I think the m... |
Regarding the assumption that $X$ and $Y$ need to be normally jointly distributed, when applying Pearson's correlation test...
what is a good test (function and package) in R to accomplish this task?
In this case, will low "p-values" represent that $X$ and $Y$ have Gaussian bivariate distribution, or the opposite?
CV ... |
I have a $n \times n$ covariance matrix and want to partition variables into $k$ clusters using hierarchical clustering (for example, to sort a covariance matrix).
Is there a typical distance function between variables (i.e. between columns/rows of the square covariance matrix)?
Or if there are more, is there a good re... |
Two dice are rolled.
Event A is all combinations for which the sum is greater than 9.
Event B is all combinations for which at least a face is 6. What are P(A|B) and P(B|A)?
Maybe you will find it very easy, but I couldn't come up with an answer based on using Bayes' theorem and not just writing down the possibilities... |
I used the glmulti package in R to generate a linear model with interactions. The response variable has 21 observations, set against 5 input variables, one of which is a binary factor while the rest are continuous. The "best model" produced by glmulti, as judged according to aic, had 6 predictor terms (4 main effects a... |
Would you also be able to provide an example? I have very little mathematical/statistical knowledge and have never understood normalization.
|
I would like to start learning about doing computations on large data sets. I have read lots of posts about things like map reduce and Hadoop but nothing that shows examples or even clearly explains how these things work. Hadoop to still seems like a magic word people wave around. So suppose I want to do something like... |
I have a dataset structured as follows:
Variable1 Variable2 Variable3 Variable4 Variable5 Variable6 Variable7 Variable8
60 70 75 73 57 69 85 90
55 66 47 79 63 76 82 97
etc.
Each variable represent... |
Suppose I flip a coin 584,369 times and observe 5,257 heads and 579,112 tails. I wish to know the lower edge of the 90% credible interval for the probability that the next flip will come up heads.
I believe:
I could use a beta distribution with alpha=5257 and beta=579112.
I want the value of the cumulative distributio... |
I have a question on imputation of missing values. A support vector machine does not work with missing values, and in practice i thus hence na.omit the rows / cases with missing values on any of the parameters (e.g. X1 to X10). From a theoretical perspective, can one improve the overall classification performance if on... |
I am running an OLS regression and it turned out that the effect of my main predictor X on the outcome Y depends on one of my control variables (age). The central focus of the paper is describing the multiple mediators that link X to Y, and splitting up the sample reduces my power drastically.
What are my options?
I ha... |
When I train a simple neural net using all the defaults it takes very long (I have played around with changing some of the defaults to little success).
Are there any tricks I am missing with PyBrain, or implementation of neural networks in general?
My dataset has has 100,000 observations, with one feature (covariate) ... |
I have two polygon shapefiles and I want to see to what extent the observed amount of overlap is due to chance.
I'm thinking of some kind of permutation test, but not sure of the best way to proceed.
One idea is randomly relocating the polygons in one shapefile to new locations, measuring the total area of intersectio... |
I have found that for some datasets, mean removal and variance scaling helps to fit a better model to data while for some datasets this does not help.
On what kind of data standardization will be helpful?
Are there some guidelines for applying this?
|
I'm writing something involving random variables and I'm not sure about the notation being right or not, so I'd really appreciate it if someone could take a quick look and confirm.
We have a sample of $n$ iid discrete random variables $X_1, X_2, ..., X_n$, and then a function $f$ that maps them onto another sample of... |
I am conducting a research project where I have a experimental group and control group of companies and a cost data point for a base year and the year after. The years of costs are different for most of the companies so for one company the two costs may be in 2006-2007 while for another they may be from 2001-2002. Also... |
I am computing similarities between words using similarity measures based on wordnet. I have obtained similarity measures for two words using three different methods - JNC (Jiang and Conrath), BNP (Banerjee and Pederson) and LIN (Lin). These similarity measures give values between 0 and 1 for two words (1 for exactly s... |
I have 5 columns of data in an Excel spreadsheet.
Each row has either 1 or 0 (on or off) within each column.
I'm trying to determine the most common grouping or clustering of columns that have a 1. For example, it could be columns B & D are the most common grouping that have 1s, followed by columns A, D & E, etc.
Wh... |
When $X$ is $X_1$,...$X_n$, how do you express the following negative binomial distribution in an exponential family form?
$$
f(k;r,p)\equiv\text{Pr}(X=k)=\binom{k+r-1}{k}(1-p)^{r}p^k~~~~~\text{for}~k=0,1,2,\ldots
$$
|
I have been doing some reading about adaptive simulated annealing and as far as I know it is an algorithm that is really useful when it comes to finding the global maxima/minima of some functions, which is useful for calibration purposes.
However, the explanation on Wikipedia for both ASA and SA are from the "physics" ... |
I'm working on movie recommendation algorithm. The data set consists of about 40 million ratings (user, film, rating). I want to separate the ratings into two groups - training set and probe set. The training set will be used for training, probe set for checking that the algorithm doesn't overfit the data.
My first pla... |
I have many measures of Y for two groups A and B. Following the more modern approach of research in education, I calculated the effect size of the difference of Y for both groups (Cohen's d), and the significant interval for the effect size.
The fact that the effect size was positive and significant (both in statistica... |
This question deals with an example of image reconstruction related to this other question on signal reconstruction. I have different issues in both examples but there could be an underlying factor.
I tried to reconstruct an image using compressed sensing just as in Coursera's course "Computational Methods for Data Ana... |
I'm trying to write such likelihood using JAGS in R (in order to estimate parameters $\xi$ and $\pi$, being $m$ fixed equal 7) using the "ones trick" and got stuck in defining the binomial coefficient (term3). How would you define the binomial coefficient?
$$
P(Y=y)=\left\{
\pi\binom{m-1}{y-1} (1-\xi)^{y-1}\xi^{m-r... |
Can anyone help give a conceptual explanation to how predictions are made for new data when using smooths /splines for a predictive model? For example, given a model created using gamboost in the mboost package in R, with p-splines, how are predictions for new data made? What is used from the training data?
Say that th... |
This question might be very basic, but yet it makes me wonder, so I wanted to ask you for an opinion.
How much calculation is allowed or desired when creating a variable? Are there at all any limitations? Is it perhaps desired to "mess" with data as little as possible and use it in its purest form?
For example, if for ... |
I am working to investigate association between environmental pollution and daily hospital admission due to various causes. This outcome data has excess zeros on days when there are no admissions for specific causes. I would like to adjust for temperature and humidity using smooth terms. Usually Poisson generalized... |
My problem is this: I have a need to do some analysis of student test results, and I am seeking some tools in order to do so. What I have are collections of scores for a number of different tests, and a number of different students. So each student may have zero or more scores, and each test may have zero or more resul... |
If I have a collection of student scores, what is a good way to create a 'single vs. group' statistic? What I would like to know is how the single score compares to the group of scores against which it is juxtaposed.
So, for example: lets say that the test permits values from 1 to 9 (inclusive), and we are looking at ... |
I heard that "for ungrouped binary data, the deviance cannot be approximated by
a $\chi^2$-distribution." Is it true? Why?
|
An association rule has the form $A\Rightarrow C$, where $A$ is the antecedent and $C$ is the consequent. Suppose you have a database of one million transactions.
The questions are:
If an association rule has 90% support, how many transactions contain all the items in $A$?
For the same rule, how many transactions cont... |
I recently asked about the Mahalanobis distance and I got pretty good answers in this post:
Bottom to top explanation of the Mahalanobis distance?
I think I got the idea, but what I still felt missing was the derivation of the formula for the Mahalanobis distance. So my question is: "How does one derive the formula fo... |
The hypothesis of my research project is “a certain training improves the ability in Subject A” .
Sample details
Groups: 1A (25), 1B (21), 2A (25), 2B(27), 3A(23), 3B (23).
The number within brackets represent the number in each group.
Control/experimental: 1A, 2A, 3A are experimental groups and 1B, 2B, 3B are contr... |
Is there an R package or other open source software that solves the problem of inferring the parameters of a linear congruential generator?
Such inference can be done as e.g. described here in a strict sense.
On ther other hand, I would also be interested in statistical methods that can be applied in this context.
|
I'd like to understand the use of Monte Carlo simulation in the chisq.test() function in R.
I have a qualitative variable which has 128 levels / classes. My sample size is 26 (I was not able to sample more "individuals"). So obviously, I will have some levels with 0 "individuals". But the fact is that I have only a ver... |
Background: I have developed a logistic regression model where I am trying to analyze the effect of socio-economic data of a family on their probability of receiving a home loan. I have used fractional polynomials to achieve linearity in my continuous covariates. One such variable is "disposable income" which comes sig... |
I encountered the following exercise
Show that as the stiffness $\beta$ goes to $\infty$, the soft $K$-means algorithm becomes identical to the original hard $K$-means algorithm, except for the way in which means with no assigned points behave. Describe what those means do instead of sitting still.
The notation is as... |
I would like to know which (non-linear) transformation of my DV yields a better model (not necessarily with the aim of producing a DV that better fits the assumptions of the test). My impression is that the Log Likelihood is dependent on the scale of the DV such that I can not compare models based on the Log Likelihoo... |
I've to make some tests for proportions in R because of some A/B duties. I know that given s1, sc the number of success of two samples and n1, nc the total number of experiments, I can do this for H0: s1/n1 = sc/nc
prop.test(c(s1, sc), c(n1, nc), conf.level=.95, correct=FALSE, alternative='two.sided')
to get the confi... |
I was reading this book where it was mentioned that if my gaussian distribution has unit marginal precision, the covariance matrix equals the correlation matrix. I didn't quite get it. Any clarifications will be much appreciated
|
What are the benefits of adding the variables into a model one by one, as compared to adding them all at the same time?
As I see in most research, the first model that is tested is consisted of all the control variables, then in the second model the first predictor is added, then the second one, and so on, until all pr... |
What are parameters start, etastart, mustart in the glm() function? I have been looking in the docs and the internet but I have found no clear explanation what this means.
It resembles bayesian "initial values" for the chains, but I doubt this is related, as glm() function in R is frequentist statistics...
|
I am studying the responses of 500 subjects to temperature increase using a linear regression on each degree of temperature (from 10°C to 28°C). Thus, it was possible for me to compute the intercept and slope for each one of the 500 subjects.
I am interested in identifying three groups of individuals that are "stati... |
How is the var/cov error matrix calculated by statistical analysis packages in practice?
This idea is clear to me in theory. But not in practice. I mean, if I have a vector of random variables $\textbf{X}=(X_{1}, X_{2}, \ldots, X_{n})^\top$, I understand that the variance/covariance matrix $\Sigma$ will be given the ex... |
In statistics, there are methods that are named with "adaptive", such as "adaptive randomization" in experimental design, and "adaptive learning". What is the word that is opposite to "adaptive", and used in the opposite methods?
|
I am trying to fit a linear model to a price response variable. Many of the predictor variables consist of mainly zeros. For example, one possible predictor variable is "drill holes". Not many parts have a drilled hole, but if they do it would make sense that it affects the price. I am using the caret package in R to t... |
I have an experiment that is as follows:
4 years of data (1 year pre-treatment, 3 years during treatment)
20 plots total
5 plots of each type (Control, Treatment A, Treatment B, Treatment A+B)
Each plots is divided into 4 quadrants in which measurements are recorded.
Initial stats revealed pretreatment differences be... |
In fixed, random and mixed effect models, and multilevel models, the response random variable is represented as a function of some explanatory variables and random errors. I was wondering if the relations implied by them are considered causal, and therefore used in causal inference? Thanks!
|
First of all, let me explain what I'm after. I have a bunch of archaeological sites (point data) in GIS and a DEM-derived slope map. I classified the slope map into 1-degree interval classes and got the values for the sites. Now I wanted to test whether the values of the sites are significantly different than would be ... |
I have a dataset of roughly 500 features and am training a binary classifier using GBM - gradient boosted machines, an ensemble of decision trees. Of these 500 variables, I am sure some are highly correlated with each other, though probably not to the extent where they are linearly dependent. For example, one variabl... |
What is the best way to model coin flips as a hierarchical model? Do you say coin draws are a series of draws from Bernoulli trials or as one draw from a binomial distribution?
That is something like this:
model {
p ~ dunif( 0, 1 )
for( i in 1 : n) {
h[i] ~ dbern( p )
}
}
or, this:
model {
p ~ dunif( 0, 1 ... |
I'm looking at similarity of samples for non-ordinal/non-parametric data. I've included a dummy dataset below for reference in the question. Neither A, B, or C is ordinal data: it's entirely categorical. Where C is filled in, it shows a Pareto distribution.
The actual dataset is large and a very small subset of the po... |
Suppose I have an experiment that has 8 factors. These 8 factors are probably related and can hopefully be reduced. For each combination of these 8 factors that I test, I get a single output. My goal is to reduce the 8 factors to a smaller set of variables. In this case is PCA or Factor Analysis more appropriate?
I am ... |
I want to perform a number of univariate regressions with different symptoms (e.g. fever, cough, sneezing) as the response variable and one categorical variable (which is always the same each time) as an explanatory variable - age group (0-4, 5-14, 15-64, 65+). In total there are 18 symptoms so hence, I want to do 18 r... |
Say I want to do a logistic regression on whether it snows on a given month of the year and day of the week. I'd have 12 months and 7 days. My understanding is that this would translate into 17 dummies (11 for months and 6 for days).
First off is this correct? Second, how would I interpret regression results (i.e.... |
If I am correct, the linear regression model is said to be a model where the response is linear in the parameters. That allows the response to be nonlinear in the predictor variables.
I was wondering if there is a name for the model where the response is linear in both the parameters and in the predictor variables, so ... |
I have some overdispersed count data (mean=8.6, var=263.5) that I am hoping to model using either a negative binomial (NB) or quasipoisson GLM. A rootogram suggests that the Poisson distribution is a poor fit.
I compared three different models: Poisson, NB, and quasipoisson.
fake = structure(list(factor = structure(c(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.