instruction stringlengths 9 38.7k |
|---|
I am working on a monthly river flow time series and somebody has asked me to check my model by simulating innovations (or something like that). Can somebody help me about how can we simulate and how can check my model with that? I appreciate if you suggest a article or document in this regard.
Also, if my question is ... |
I was going through some lectures related to MCMC. However, I don't find a good example of how it is used. Can anyone give me a concrete example. All I can see that is they run a Markov chain and say that its stationary distribution is the desired distribution.
I want a good example where the desired distribution is ha... |
Which is more important when selecting a model? The R2 or the accuracy of the model?
Here are 2 different models using the same data with different transformations for the Xs, the Ys are a percentage and the same in both.
This is a classification problem in which correct classification has a higher growth rate associ... |
I'm using R forecast package with a daily time series data, that has complex i.e. Multiple seasonality (weekly, Yearly, monthly). The fit/forecast process also needs to take into account certain day specific effects.
I plan to:
Use auto.arima function
Set TS frequency to 7, to take care of the weekly seasonality
Use ... |
I have seen the discussion in the page Computing c-index for an external validation of a Cox PH model with R. I am doing almost the same thing, using 3-fold sampling (with two thirds in the training set and one third in the test set) to do cross validation of cox regression model. When I was trying do rcorr.cen, it gav... |
I am preparing for my statistics final and have this question in the review package to answer:
I understand the hypothesis portion of the question. How should I approach the first question: Can the researcher conclude that alcohol consumption is related to gender?
Does the answer involve using Simpson's Paradox?
|
I have a number of distance matrices that are related to different elements. Each of these matrices represent a specific distance between these elements. I want to perform a Self-Organizing Map technique on them in R and get a Heatmap or something that could present the data well. But the SOM function does not create s... |
I've upto one million transaction dataset in the Oracle database & it's a data warehouse based system. I need to prepare a ATM card fraud detection model based on the dataset available. Is it possible to do in real time?
I would really appreciate if some links for research papers/case-studies are provided.
Clearificati... |
What are other feature representations for documents that are used for clustering textual documents? The only representation I'm aware of is tf-idf. Are there other ones?
|
When performing the linear SVM classification, it is often helpful to normalize the training data, for example by subtracting the mean and dividing by the standard deviation, and afterwards scale the test data with the mean and standard deviation of training data. Why this process changes dramatically the classific... |
In documentation to glm I read: "For binomial and quasibinomial families the response can also be specified as a factor (when the first level denotes failure and all others success)" Does it mean that probability of failure or success is being modeled?
I'm trying to apply simple logistic model to "german credit scorin... |
What are the different methods by which we can generate random samples from the existing distribution which are computationally efficient?
One of the common methods given in statistics text is by applying a transformation called the inversion method. We start with a Uniform(0,1) distribution from which we can pick an a... |
In a hypothetical usability experiment, two interface changes are tested against a baseline. The interface changes are cumulative, i.e. variant B is an extension of A. We measure usability according to its definition by measures for efficiency, effectivity and satisfaction. To make things worse, the interface variants ... |
I have the results of a meta-analysis of 10 studies that reports a combined random effects odds ratio (computed using Woolf's method) and 95% confidence interval of an event happening in one group relative to another:
$OR = 7.1\ (95\%\ CI\ 4.4-11.7)$
I'm now building a model that needs to sample around this odds ratio ... |
I have model where coefficient is of different powers:
$$\mbox{log} ( \mu_{i} ) = \alpha + \beta x_1 + \beta^2x_2 + \beta^3x_3 + ... + \beta^nx_n \\
\\
N_{i} \sim \mbox{Poiss} ( \mu_{i} )
$$
$N_i$ and $x_i$ is the data, $\alpha$ and $\beta$ are model coefficients.
Can this problem be somehow transformed so that it ca... |
I am performing logistic regression and would like some help with interpretation.
My data was collected at 2 time points; baseline and follow-up.
My outcome variable is a psychosocial functioning variable (as an example working or not working) at follow-up.
In step 1 I entered the functioning variable at baseline. In s... |
I am currently working on my thesis and calculating some simple correlation coefficients. I only have 11 datapoints available, but I would like to assess the statistial significance of my results. The asymptotic p-values are not significant at the 10% level.
Because of the small sample, I additionally computed bootstra... |
I am really hoping you can shed some light on a topic that I am struggling with.
I have a 2x3x4 repeated measured anova. I have a significant 3-way interaction, and I want to make sure that I am using the correct post hoc comparisons and not violating any key statistics theory.
If we consider my 2x3x4 RM ANOVA to be A... |
Summary:
I created a model that tries to explain success factors in crowdfunding initiatives. I collected the data by scraping it directly from the crowdfunding platform. That of course limits my research in terms of data availability.
In order to come up with conceptual model I adopted a theory, that assumes latent v... |
I asked the following question on Math.SE and I've been told that I may get more helpful answers here on Cross Validated. This is my first question here, so I hope the tags I've chosen are accurate enough.
Let $S$ be a $k$-simplex in $\mathbb{R}^k$. I'd like to find a hyperplane $P$ that passes through the origin suc... |
Can someone please explain to me why the covariance matrix needs to be positive definite for the Hausman test? And why we can skip this restriction by applying the "test of overidentifying restrictions"?
Isn't the issue easily explainable when simply comparing the formula of the Hausman test statistic and the formula o... |
Suppose we are want to consider the asset price $P_t$ (business daily) of some stock. The log return is defined as
$$X_t:=\log{\frac{P_t}{P_{t-1}}}$$
suppose we are considering the prices between some interval, eg. June 1986 and March 1990). Log returns can be modelled by $X_t=\sigma_t\epsilon_t$, with $E[\epsilon_t]=0... |
Although my question sounds like I have data suitable for log-linear analysis, I may not. I have a large number of students (about 1000) of two levels who solved a test of 8 different types of problems (which have specific features and categorized at two different levels).
Thus I have three types of independent variab... |
I am trying to compare correlations between subgroups of a variable. For instance, I am trying to compare the income of group 1 v. income of group 2 v. income of group 3 v. income of group 4, where the groups are specified by another categorical variable.
What I did was create new variables separating out the income v... |
How can one use nested cross validation for model selection?
From what I read online, nested CV works as follows:
There is the inner CV loop, where we may conduct a grid search (e.g. running K-fold for every available model, e.g. combination of hyperparameters/features)
There is the outer CV loop, where we measure th... |
I would like to fit a piecewise linear regression with knots as parameters. I would like to know what's the best solution.
Should I run a set of regressions with all the possible knots and choosing the knots which could minimize an information criterion such as AIC (Akaike Information Criterion)?
If that's the best ... |
I am trying to get a feel for how LDA 'fits' within other supervised learning techniques. I have already read some of the LDA-esque posts on here about LDA. I am already familiar with the perceptron, but just learning LDA now.
How does LDA 'fit' into the family of supervised learning algorithms? What might be its draw... |
Suppose we have an iid sample $X_1, \dots, X_n$. We want to test if it has a standard normal distribution.
One test statistic I learned from Brockwell and Davis's Introduction to Time Series and Forecasting is to
first find an interval $(-b, b)$ which has a probability $95\%$ under the standard normal distribution,
t... |
Please note that I am asking for advice regarding general approaches to analysis in this question.
I have a time series of some $p$ variables and $n$ observations (going back several years and with resolution of approximately 15 minutes). The variables are the numbers of product $p_i$ sold, and each sale has its own o... |
I am doing a logistic regression analysis using the glm command in R. It is to identify causes of valve narrowing beyond a certain threshold; 0=no narrowing, 1=narrowed. One of my variables is the size of a medical device that is implanted (range 25-36mm). Sometimes the device isn't implanted and I've left this as a bl... |
I have a quick question:
In using a t.test for multiple experiments, I got one p-value for each experiment.
When I plot the histogram of these p-values, I find the distribution looks like a bell-shaped curve, i.e. majority is centered around 0.5 to 0.8, very few > 0.9, but there are some < 0.05.
What can I tell from t... |
From Wikipedia
A portmanteau test is a type of statistical hypothesis test in which the null hypothesis is well specified, but the alternative hypothesis is more loosely specified. Tests constructed in this context can have the property of being at least moderately powerful against a wide range of departures from the ... |
I've been playing around a little with basic probability and I was wondering if there is any intuitive meaning to either,
$$
P(A|B)P(B|C) \quad\text{or}\quad \sum_{B} P(A|B)P(B|C).
$$
After playing with the definitions I didn't see any obvious simplifications, but I feel there should be one. I thought it might simplify... |
We performed a randomized controlled trial. I am interested in anxiety levels (dependent), treatment (meds vs. ultra-dance therapy), and personality variables (agreeableness, neuroticism, weeaboo). We measured anxiety levels four times. I am interested in exploring whether participants in one treatment experienced grea... |
Consider a case where instead of observing actual variable values, we are observing variable range. The possible range-values could be enumerated (i.e. could be a fixed set of values, for e.g. fixed age-group ranges) or could be observation specific (and might overlap).
In the former case, the variable could be treate... |
In Google's consumer survey product, they calculate confidence intervals using the Wilson score interval for the unweighted results.
Does anyone know how they calculate the confidence interval after weighting? They also state that the "Order is statistically significant". What statistical test do they use for that?
ht... |
This may be perhaps a silly question, but when generating a model with caret and using something like LOOCV or (even more to the point) LGOCV, what is the benefit of splitting data into train and test sets if this is essentially what the cross-validation step does anyway?
I read some of the related questions and they s... |
I have 313 males and 356 females. Males and females each took two (gender specific) surveys (an original and a modified version). The survey I'm investigating is a measure of unwanted sexual experiences with parallel versions for men and women (e.g. female version = have you ever been victimized? male version = have... |
Suppose $L$ is a random $p\times p$ lower triangular matrix, with known density, $f(L)$. To compute the density of $C=L L^{\top}$, one needs to use the change of density formula. This is a little bit hairy because $C$ and $L$ are matrices.
Digging around on the web, I found the formula
$$
\frac{\mathrm{d}\operatorname... |
I have a test dataset on which I run the following regression analysis in r:
fit <- lm(Cost ~ Slope + YardDist + Removals + TreeVol, data = test)
I get an r-squared of 0.83
Next I change the regression equation to:
fit <- lm(Cost ~ Slope + YardDist + Removals+ I(TreeVol^(-0.82)), data = test)
I get an r-squared of 0.98... |
I have a set of data and plotted it in a graph (in Microsoft Excel) and then added a trendline. The equation I got is $y=833.71x^{-1.448}$ with $R^2=0.9511$. What should I do to get $R^2=1$ (100% fit)?
|
Under certain condition, an ARMA model is stationary.
But I was wondering why an ARMA model can (always?) be used to model
a stationary process in time series?
Is any stationary process an ARMA process? Or, for any stationary
process, is there an ARMA process s.t. they are identical a.s., or
have the same law, or t... |
I was wondering if I could get a third opinion to settle a discussion on the distinction between independent and non-informative censoring.
My definitions:
1) In independent censoring, the event and censoring rates are assumed to be the same conditional on the level of the covariates.
2) In non-informative censoring ... |
I have been trying to understand the results of a CRT decision tree, my question is if the terminal nodes should be mutually exclusive? I am asking this because by reading the terminal nodes some variables seems to overlap each other.
For instance some terminal nodes "share" the same profession:
Node 23: carpenter, pl... |
Consider the following data and the code
% The data
x = [4 4.5 5 5.5 6 6.5];
y1 = [0.000159334114311,0.000184477307337,0.002931979623674,...
0.004321711975947,0.006269020390557,0.012537205790269];
y2 = [0.000160708687146,0.000186102543697,0.002956862489638,...
0.004356837209873,0.006325918592142,0.0126670359... |
I have been reading about maximum likelihood estimation and maximum a posteriori estimation and so far I have met concrete examples only with maximum likelihood estimation. I have found some abstract examples of maximum a posteriori estimation, but nothing concrete yet with numbers on it :S
It can be very overwhelming,... |
I tried to create a neural network for regression. In order to test the concept, I created a dataset the following way:
x1 = random('Normal',0,5,500,1);
x2 = random('Normal',0,5,500,1);
y = x1 + 2*x2;
X = [x1 x2];
So x1 and x2 are vectors of random numbers with mean value 0 and standard deviation 5.
The neural network... |
Basic problem but I can't seem to figure out how to think about this:
In a simple OLS problem the estimate of parameter $\beta$ is $\beta^*=(X'X)^{-1}X'Y$.
Then, the standard error of $\beta^*$ is $s (X'X)_{jj}^{-1/2}$.
But $s^2$ is uncertain. It has a probability distribution. Let's assume for now that we actually kn... |
I was reading here
the sum of the deviations about the mean will be 0, except for possible rounding.
Could anyone explain me the what does it mean? I know about sum of deviations from mean being zero but what about this except for possible rounding?
|
I have the following R code:
library("forecast")
library("rbenchmark")
v <- c(95.3, 96.8, 97.2, 97.9, 98.2, 98.5, 99.3, 99.9, 102.7, 104.2, 107.2, 109.3, 109.8, 110.5, 111.2, 111.6, 112.6, 113.5, 114.3, 115, 117.4, 119, 119.3, 120.1, 120.7, 121.1, 121.9, 122.2, 122.9, 124.6, 129.1, 128.8, 129.3, 130.3, 131.1, 131.8, 1... |
I am new to glmnet. I have over 15,000 predictors and a binary outcome for approximately 400 samples. I am having trouble finding sources online to describe explicitly if what I am planning to do is correct.
My current analysis plan includes:
Obtain the training parameters.
Use the caret package to repeatedly cross v... |
I am working on a survey analysis looking at the effect of an intervention with three components (each having multiple sub-parts). Questions ask respondents how frequently they used each component. Two of the questions have scales ranging from 1 to 5 (never/rarely/often/almost always/always), while the other question h... |
How to find the following:
Let $X_1$, $X_2$, $X_3$,..., $X_n$, be i.i.d with chi-square distribution with one-degree of freedom. Find $a_n$ and $b_n$ such that $ a_n(\max_i X_i - b_n)$ converges in distribution to a nondegenerate random variable.
I thought about Central limit theorem but I don't think it is the useful... |
Consider three random variables $X,Y,Z$, which are jointly normally distributed. I know that $Y$ is orthogonal to $X$ conditional on $Z$, in the sense that $\beta_{YX;Z}=0$ (i.e. the regression coefficient of Y on X conditional on Z is zero). I'd like to know if it is correct to state this orthogonality condition as:
$... |
I'm having difficulty modeling something… I think it's fairly simple, but I'm just not confident enough in my ability.
I setup an experiment with two treatment groups, six replicates in each treatment group, and measured "diversity" at three time points. I want to see whether "treatment" has an effect and if so, whethe... |
At least two questions (1, 2) have addressed the question of how to handle the analysis of multiple correlations. I would like to extend this question to the case of data that has multiple levels (say as a relatively straightforward case correlations between personality traits X1, X2, and X3 on trait Y as nested withi... |
The plot below shows the ecdf of the p-values from to different statistics, let us identify the blue graph as vector x and the red graph as vector y. Now I execute a ks.test for x and y compare these vectors with a uni distribution in a small range.
ks.test(x[x<=0.2],function(x){punif(x,0.01,0.2)},alternative = "two.si... |
I need to obtain the functional (i.e.: statistic obtained from the empirical distribution function) associated to the most powerful test to contrast $H_0: f_o$ vs. $H_1: f_1$, using a sample of size $n$.
In particular, my problem is that I don’t know how to construct this functional when I am not given a particular de... |
I'm curious about how to understand the accuracy of my model which I computed with glm( family = binomial(logit) ).
In some articles it is mentioned that we should perform chisq test with residual deviance with it's DoF.
When I call summary() of my glm module.
"Residual deviance: 9109.9 on 99993 degrees of freedom"
T... |
i would like to run the following regression: 2 DV out of which 1 is in its original form and one is transformed (due to non-normality) to a squared transformation. Can i still run this regression or would i have to transform the other DV in the same format (squared transformation)
Many thanks in advance!
regards,
Clar... |
This might be a simple question, but just wanna make sure I am on the right track: I need to compare two samples using a 1-sided t-test. The sample sizes in the two groups are unequal, but it should be ok. The crucial part is that, the data in both groups are not independent. To be more specific, I have 4 vectors, v1, ... |
I'm running data analysis for an online marketplace. I want to determine the influence of the time a perishable good (say a concert ticket) is online versus the probability of a sale.
I have made a plot showing that 'time online' is an important factor: items online for 2 days have 1.5x the probability of selling compa... |
Consider the Challenger-Disaster:
Temp <- c(66,67,68,70,72,75,76,79,53,58,70,75,67,67,69,70,73,76,78,81,57,63,70)
Fail <- factor(c(0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1))
shuttle <- data.frame(Temp, Fail)
colnames(shuttle) <- c("Temp", "Fail")
Now I can fit a logistic model which will explain the "Fail" of O-r... |
I am familiar with using support vector machines as the base classifier in a Python re-implementation of Poselets. But I am new to the use of support vector regression (not machines for classification) for time-series data.
In my data set, I have a vector of target variables $y_{i,t}$ and a matrix of predictor variable... |
I am working on a report which is being sent through to end users that should flag to them any "large changes" in the day-to-day values for the past 30 days. These values are day-to-day differences which we assume to have a mean of zero.
To shed a bit more light on the data, the values are proportional returns to a por... |
With respect to (binary) logistic regression and a categorical IV, State, if a given exp(b) is .08 and I'm using indicator coding such that my reference category for the variable, State, is, say, "Wyoming," how do I interpret .08? Presumably I contrast the .08 with the "mean" of Wyoming (with "mean" here being the prop... |
Can Friedman's gradient boosting machine achieve better performance than Breiman's Random Forest? If so, in which conditions or what kind of data set can make gbm better?
|
Background
There is a data set from a clinical trial, involving about 1000 patients received an behavior intervention. The intervention is supposed to affect a variable x1, and the change in x1 results the change in the response variable y.
The data also contains the information of several(>10) snips for each patient.
... |
I use a state space model to fit observations to a population dynamic model (using the BUGS language).
In the "state" part, the dynamic model create a new "state" of the population (i.e. size and structure) for each year modeled.
In the "observation" part, several outputs of the "state" part are fitted to observations ... |
I am reading a very interesting article by Sellers and Shmueli on regression models for count data. Near the beginning (p. 944) they cite McCullaugh and Nelder (1989) saying that negative binomial regression is unpopular and has a problematic canonical link. I found the referred passage and it says (p. 374 of M and N)... |
I'm in the process of relevelling some factors for an LME using R and have hit an issue. I've reordered the factor levels to enable me to talk about the outcome of the model more easily in relation to my experimental hypotheses.
The model is pretty simple: two factors and an interaction between the two. Weirdly, when I... |
An ARMA model is not necessarily stationary. It is when certain conditions on the model are satisfied.
In time series, an ARMA model is used to model a stationary process. On the other hand, is a nonstationary ARMA model used to model a (not necessarily stationary) time series? Or (almost) always, only stationary ARMA ... |
I am struggling with the interpretation of my MANOVA in SPSS. I have two DV and one IV (age), in the MANOVA table Wilk's lambda is .053, thus not significant at a alpha level of .05.
When I then look at the "tests of between subjects effects" table, the effect of age is significant for one of the DV (p <.05).
How shoul... |
I have a time series data set to which I am trying to fit a Hidden Markov Model (HMM) in order to estimate the number of latent states in the data. My pseudo code for doing this is the following:
for( i in 2 : max_number_of_states ){
...
calculate HMM with i states
...
optimal_number_of_states = "mode... |
I was wondering what difference and relation are between forecast and prediction? Especially in time series and regression?
For example, am I correct that:
In time series, forecasting seems to mean to estimate a future values given past values of a time series.
In regression, prediction seems to mean to estimate a val... |
Help me in finding the suitable statistical test to show the significance difference [through p-value]
> Sample_data
Universe subset
x 2200 5
y 2500 50
From the above data, I want to find whether the proportion of "Universe" that are in "subset" for x and y are significantly different.
Like, x and y... |
I am asking myself how cointegration and causality are related in a VAR/VECM model.
Suppose you have two $I(1)$ variables in your 2 dim VAR process which are cointegrated, so there is one cointegration relationship.
In my opinion this should imply that the two variables are granger causal to each other?!
But, does thi... |
I am interested in quantifying the similarity between 2 time-series. Can I simply sum the squared values of their differences, ie compare the sum of square residuals?
More specifically, I have some observed data that can be represented as a time series. I am able to simulated this data and would like to find the most ... |
I'm trying to use R's neuralnet package (documentation here) for prediction.
Here what I'm trying to do:
library(neuralnet)
x <- cbind(runif(50, min=1, max=500), runif(50, min=1, max=500))
y <- x[, 1] * x[, 2]
train <- data.frame(x, y)
n <- names(train)
f <- as.formula(paste('y ~', paste(n[!n %in% 'y'], collapse = ' + ... |
I wonder how can I test if a data sequence is really random?
Of course I can randomly cut it into equal pieces, and check if the correlation coefficient between different pieces on average is zero.
But is that sufficient? Or if that is the best way to do it?
Thank you
|
Usually we can construct likelihood ratio for testing the Null hypothesis and alternative hypothesis: The likelihood ratio test $ P( l(\beta_{1}) / l(\beta_{2}) ) < \alpha $ is the rejecting region for the null hypothesis. Then the inequality would reduce to a formula with sufficient statistics as the variable.
My que... |
I try to predict values for regression in LIBSVM. My data is in time series. I use gridregression.m file in LIBSVM to find optimal parameters c, g and p. Gridregression.m file use cross validation to find optimal parameters, but is it ok to use cross validation in time series?
When I use parameters from gridregression... |
There does not seem to be a standard way to deal with missing data in the context of the exponential smoothing family of models. In particular, the R implementation called ets in the forecast package seems to just take the longest subsequence without missing data, and the book "Forecasting with Exponential Smoothing" b... |
I am trying to run a power calculation for a randomized control trial. For this I need a mean and standard deviation for our 'baseline'. There are papers out there which would have a mean and standard deviation, but what we would want would be to use their final outcomes as our baseline. In other words, these papers ap... |
I am building a predictive model. I split 2/3 of the data into a training set, and the rest into the test set. I build a model based on the training set. I use the the model to test on the training set, and the test set.
What are the advantages and disadvantages to iterating through all 3 combinations of test/train d... |
We know that martingale difference is an assumption weaker than dependence, and stronger than uncorrelated. The same is true for sub-independence. My question is how sub-independence and martingale difference are related.
|
For one campaign, I have X as independent variable, Y as dependent variable, i.e., X is income, Y is credit score. I can use X to predict Y with proper model. Now I want to know how Y would perform if I added one more independent variable Z into the model, i.e., age. The challenge is I don't have any data on Z, that is... |
All software programs I have tried report only odds ratios (ORs) for binary logistic regression predictors (as exponential of the betas).
I am interested to know how can I compute the relative risk (RR) from a binary logistic regression model?
My reason is that RRs (besides ORs) would make my variables more understanda... |
Suppose that I have an infinite scale mixture of zero-mean normal distributions, whose mixing distribution is gamma with parameters $\alpha$ and $\beta$. The data is thus distributed according to a generalized Student's $t$ distribution. I am handed a pair of samples, $(z,y)$, generated through the following procedure,... |
I have a subset of data from a panel covering 100 cities and 20 years but the subset for some reason does not include the time variable or a variable to distinguish one city from another.
What are the implications for OLS?
Would this violate some assumptions?
How can I get around it (if at all)?
Can I treat the data as... |
I was wondering how his "second-order stationary process" is defined in Brockwell and Davis' Introduction to Time Series and Forecasting:
The class of linear time series models, which includes the class of autoregressive
moving-average (ARMA) models, provides a general framework for studying stationary processes. In... |
I am interested to know, how to get the coefficient from VGAM package (generalized Poisson regression), because, when I want to get the coefficient, is just can to get the estimate with @ to get the estimate. An other coefficient can to get all of the part from coefficient with "$"...
My program like this:
library("VGA... |
This is what I have done in R:
> quantile<-rq(log(response)~gender+age+I(age^2)+gender*age+gender*I(age^2),data=Modified,
+ tau=0.9)
> summary(quantile)
Call: rq(formula = log(response) ~ gender + age + I(age^2) + gender *
age + gender * I(age^2), tau = 0.9, data = Modified)
tau: [1] 0.9
Coefficients:
... |
I have three diagnostics tests. Each test indicates classifies an individual as either 0=ill or 1=non-sick. I assume these test are not independent.
How can multiple binary diagnostic tests be best integrated to form an overall diagnosis?
|
I am doing some univariate analysis on a variable before doing regression. I think it is very skewed.
Three histograms are of (1) the original variable; (2) log10 transformation, and (3) inverse of the data to the power of 4.5.
How should the variable be prepared for regression?
|
I'm fitting a random effects model with glmer to some business data. The aim is to analyse sales performance by distributor, taking into account regional variation. I have the following variables:
distcode: distributor ID, with about 800 levels
region: top-level geographical ID (north, south, east, west)
zone: mid-lev... |
I came across the term 'teleoanalysis' in relation to medical trials. There is no Wikipedia article on it yet, but Google search has a few links to scientific papers and their critiques.
As far as I understand, one of the main concepts of teleoanalysis is: if A causes B, and B causes C, then we can conclude that A caus... |
Let $X_1, \ldots, X_n$ be i.i.d. exponentially distributed random variables with density
$$\eqalign{\theta^{-1} e^{-x/\theta}, &x \ge 0 \\ 0, &x \lt 0} $$
and let $Y_i = X_{(i)}$ denote the order statistics such that $Y_1 \leq \cdots \leq Y_n$.
How to show that
$$
2\frac{\left(\sum_{i=1}^{r}Y_i\right) + (n-r)Y_r}{... |
I have done an ordinal regression using lrm from the rms package.
load(url("http://www.produnis.de/R/NEXT-Q0-OR.RData"))
require(rms)
mydata <- NEXT.or
fit <- lrm(QuitJob~QD,data=mydata);fit
I would like to predict the rank in "QuitJob" (1=won't quit ... 5=will quit very soon) by giving a value for "QD" (how much work... |
I'm rebutting a paper in which the author has done linear regression in two steps:
Regression against a single predictor
Regression of the residuals from the first model against a second predictor
The problem with this approach is that if the two predictors are correlated (they are) then it tends to force more of the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.