instruction
stringlengths
9
38.7k
I am confused about using nnetar. All my training time series data are positive numbers, but the forecast results obtained from nnetar returns negative numbers. The following is my code myts <- ts(data, freq = 5) fit <- nnetar(myts) fcast <- forecast(fit, h = 100) However, if I forecast only short period of time e.g....
I'm trying to reduce the size of my dataset, which is composed of 200,000 projects. Each project is defined by its size and a binary value that is 1 if the project has active users, 0 otherwise. Most of the project sizes are < 1000 (80% of the dataset). I would like to group the projects, and for each group I would cou...
I'm replicating an old study and I have two sets of existing estimates which measure a similar effect, namely the presence of a studied item in memory over time: a <-c( .42, .31, .26, .11, .02, .001, .001, .001, .1 ) b <-c( .17, .14, .03, .025, .06, .08, .06, .06, .08) Both series of estimates are based on very simila...
Kindly explain me how to estimate poisson regression model using iterative weighted least square method. I know it can be easily estimated in any software like Stata, SAS, SPSS etc but I want to estimate it manually. I am unable to understand the weight matrix (W) in the following iterative estimation equation: $$ b...
I have a symmetric matrix $V$ of order 10. I want to decompose $V$ in such a way that $$V=SS'$$ with $S$ being non triangular. The matrix $S$ has some restrictions that 45 cells have ‘0’ values and 55 other remaining cells are supposed to be solved. I am looking for solving this using sas. Here is the structure of $S$...
I am quite new to machine learning, CART-techniques and the like, and I hope my naivete isn't too obvious. How does Random Forest handle multi-level/hierarchical data structures (for example when cross-level interaction is of interest)? That is, data sets with units of analysis at several hierarchical levels (e.g., stu...
I'm conducting a study on internet shopping adoption. I'm using a structural model from a research paper. My supervisor has asked me to conduct a factor analysis using SPSS. I'm quite weak in stats and am not familiar with SPSS. There is one variable "Behavioral Intention" which is based on only one question (not mult...
I have a zero-inflated negative binomial model to a dataset (n = 47) with a over-dispersed dependent variable (mean = 6.70, sd = 17.68). The DV counts the number of fatalities in protest events, so the 0 value can be a result of the non-existence of protest, or of the lack of fatalities during the protests. Thus, I es...
Bias is defined as an average of all errors (without abs) and this is, IMO, what I want. However, I have been asked to give MEAN ERROR. Is this the same than bias and is it wrong to call bias as mean error? Just in case I’m messing these definitions totally, description what I try to do: Positions are forecasted and co...
I have the data with categorical variables and continuous variables, but is the need for finding information value in explanatory data analysis. Just give the reason for why we are calculating the information value for each variables at the beginning of the data analysis and what will be the cutoff point of INFORMATION...
Let's say I have an experiment with two factors A and B, each with a number of different levels. I want participants to see all levels of factor A exactly $n$ times, never see a level of B twice How would I generate a test plan that assigns me $x$ users to the various combinations of A and B given the above constr...
I have a few machines that are used to calibrate each other. Machine 1 has is accurate to 0.025% Machine 1 is used to calibrate Machine 2, which has an accuracy of 0.005% Machine 2 is used to calibrate Machine 3, which has an accuracy of 0.025% Machine 3 is used to calibrate Machine 4, which has an accuracy of 0.04% Us...
The question is probbaly easy, but I don't want to fool myself. If there are three (univariate real) time series $A$, $B$ and $C$ such that $A$ and $B$ both highly correlated with $C$ at some arbitrary lags, does it implies that $A$ and $B$ also highly (near as high) correlated at some lag? I presume it does, because I...
I have already read some books about both two structural equation models. It seems both SEMs are suitable to the situation with small observations and large variables. I assume to use combine both two SEMs to create a more accurate model to analyse the data and structure.
How do ridge, LASSO and elasticnet regularization methods compare? What are their respective advantages and disadvantages? Any good technical paper, or lecture notes would be appreciated as well.
I'm trying to create Random Forests in Matlab and there are more observations in some classes than there are in others. Do I need to specify this as a cost matrix or as a prior probability or will Matlab figure this out automatically and the fact the data is skewed won't matter. Thanks
I'm trying to understand the results published in Sagristano, Trope, and Liberman (2002). Specifically, I don't understand what analysis produced the result highlighted in the screenshot below. The basic design is a 2 (time: near vs distant, between subjects) X 5 (probability of winning: .1, .3 ... .9, within subjects)...
I am using panel data and I have to choose between fixed-effects and random-effects models. I run the Hausman test, the H0 (i.e., the difference in the coefficients from the two models is not systematic) is rejected. Thus, I should use the fixed-effects. I also run a second test, which is based on the Mundlak model. So...
I have an interpretation question. I am running binary multilevel models on whether or not households have bank accounts. Apart from relevant economic, social and demographical household level variables I also include two contextual variables for the primary sampling units (PSU), which are either villages or urban neig...
I've simulated data according to $y = \text{sin}(2\cdot(4x-2))+2\cdot\text{exp}(-(16^2)(x-0.5)^2)+\epsilon$ where $\epsilon \sim \mathbb{N}(0,0.3^2)$ By evaluating the ith B-Spline of degree $k$, i.e., $\text{B}_{i,k}(x)$ for $m$ inner equidistant knot intervals recursively, I`ll get a design-matrix of dimension $n\tim...
I want to obtain reliable standard errors of the estimated coefficients from a regression of y on x. The observation for each individual consisted of a value of the y variable, which is binary, and a location. The latter was assigned to one of 8 geographical areas, the x values being estimated averages (from secondary...
I would like to start learning some of the basics regarding data processing and analysis of microbiome data using R. Can anyone recommend a tutorial on some of the core/basic approaches that also include publicly available microbiome data sets? (Note: I understand that this would probably be highly dependent upon the ...
sorry I am completly new to the forum and as well to using GEE and SPSS so I hope my question is not to confusing. My dependent variable is the firm performance and I have several controlling variables. First of all I am not sure how to set up my independent variable. I would like to find out whether there is a critic...
I have the following problem. Let's say g is a function of A and R. I run a Monte Carlo analysis to determine the pdf of g considering the real pdf of R but with A having a rectangular pdf. Now I have new information about the pdf of A. My question is: Do I need to run my Monte Carlo again or can I apply to my old pdf ...
I am using a decision tree and random forest for a classification problem. The output is binary {0,1} and some of the input variables are categorical while the others are continuous. I would like to know if it is possible to extract odds ratio from one of these models. Odds ratio similar to the ones that are common...
Is it possible to compare and test actual subsets of a population to the entire actual population? That is, let's say for a baseball team we want to know which players are contributing to the team's on-base percentage, which players are hurting it, and which players are performing at a rate indistinguishable from that ...
Hayy all,, Im going to do classification using SVM. As I understand we have to project our data into higher dimensional by using kernel. And there are 4 common use kernel (linear, RBF, polynomial, and sigmoid). What is the different between those kernel? We need to find the linear separable line / hyperplane to classi...
I'm monitoring a website where I have two kinds of users (say, A and B). These users are able to contribute to this site in a variety of ways and, for each contribution, its time is logged. What I want is to compare if the number of days that the user is active (contributing in some way) differ between the kinds of use...
I just had it put to me that one can not reasonably make inferences from non-parametric statistics. This strikes me as absurd as the logical rational supporting counter-factual resampling/rank order alternatives (etc), would seem to be equivalent to the rationale of frequentist approaches. Where/what is the differenc...
I applied a survey consisting of 12 questions to 120 people and each questions include 4 nominal categories; I want to make comparison of people's answers according to their socio-demographic characteristics such as their educational level or socioeconomic status. All of my comparison criteria consist of nominal catego...
I have created a linear model (which has multiple predictors) using the lm() function and I would like to interpret the "coefficients" that I get when I use the summary() function on the linear model. Now I want to consider how the coefficients reflect on the predictors' influence in the model - am I right in thinking ...
I am doing multiple regression with Gas production (l/d) as response variable, and flow rate (l/h) and COD influent (g/l) as explanatory variables in R. I made two models. mod1 <- gas ~ flow + COD r^2 = 0.64 f stat= 56.62(2,64) with 0.0000.... p value. mod2 <- gas ~ flow*COD r^2 = 0.81 f stat = 89.14 (3,63) with...
Let's say I'm using the Sonar data and I'd like to make a hold-out validation in R. I partitioned the data using the createFolds from caret package as folds <- createFolds(mydata$Class, k=5). I would like then to use exactly the fold mydata[i] as test data and train a classifier using mydata[-i] as train data. My firs...
I am trying to use the package ‘fitdistrplus’ in R to fit one non standard distribution to my data set. I am trying to copy the methods the package creators used in their tutorial for specifying a Gumbel distribution but unfortunately I am not able to do it. (The package documentation can be found in this pdf.) So my...
Let's say I have a model: $$Y_i = \beta_0 \beta_1^{X_i} \epsilon_i$$ (note: This is slightly different than the more common example case of $Y_i = \alpha e^{\beta x_i}\epsilon_i$.) I can take the log of $Y$: $$\log Y_i = \log\beta_0 + X_i\log\beta_1 + \log\epsilon_i$$ Assuming all the usual assumptions around the error...
I am using lmer in R to run LMM. My DV is continuous and my IVs are categorical. Many statistician said if the three-level parameter is significant, I cannot interpret the two-level parameter. Does it also include when the parameters are not contradict to each other too? For example, in the two-level, Group2:color2 is ...
I have a question regarding sticking-breaking model of Dirichlet process, which is defined as follows: There are further statements that I am not clear that how to derive equation 1 from that posterior distribution and why does the equation 1 is equal to equation 2. Here $\mathcal{B}$ is Beta distribution.
I have a dataset of two genetically different cell types, "A" and "B", and each of them can have four different morphologies, let's say "spiky cell", "elongated cell", "round cell", "triangular cell". This yields a 2x4 contingency table: Spiky Long Round Triangular Type "A": 1 10 1...
I did model test of in anova. once mod1 vs mod2 , other mod2 vs mod1. Does it matter? Can I compare two models of different df and different parameters? anova(reg5,reg4, test="Chisq") Analysis of Variance Table Model 1: Gas ~ CODload Model 2: Gas ~ Flow * CODin Res.Df RSS Df Sum of Sq Pr(>Chi) 1 65 27786...
I'm new here, and fairly new to statistics, so I apologize if this is an easy question, but I'm stumped. I'm doing a research project simply for fun (yes, I'm weird like that). I was never able to find a professor at my graduate school interested in sponsoring the study so IRB refused to sign off on it so I was left to...
I'm new to stats and I need some help. Can anybody tell me, in the most "beginner friendly" way, how to perform hypothesis testing with a geometric distribution for 2 samples? please take into account that, until a month ago, Statistics for me was mean, mode and std dev...
Question Consider the following process: $$2y_t-3y_{t-1}+y_{t-2}=\epsilon_t-\theta\epsilon_{t-1}$$ What is the model for the process $w_t=\Delta y_t = y_t-y_{t-1}$? Attempt I have solved the question in two ways, which seem to be giving conflicting answers. Substitute the form of $y_t$ into the expression of $w_t$: $...
I want to test if the $\alpha$ for a scale is dependent upon a personality test, which is a continuous variable. I understand that there are many methods to test if two $\alpha$'s are significantly different for two different groups when they are given the same test. But what if the grouping variable is not dichotomous...
I have a series of data of photon counts versus time. These data are periodic, then I can fold them and obtain an average profile of the data. Nonetheless, some variations appear sometime in the single profiles. To check if the average profile and the single ones are statistically different, they suggested me to use th...
I happen to do a lot of linear regression, the typical use case is predicting $Y$ with a few predictors say $X = [X_1;X_2;X_3]$. So we we find $\hat{\beta}$ such that $$\hat{\beta} = \underset{\beta}{argmin} ||Y-X.\beta||^2$$ But actually what I am more interested in in finding the linear estimation of $Y$ such that $...
I'm training a SVM classifier on a dataset using LibSVM through Weka, but after I have my trained classifier I'd like to know which features are important to my classifier and which features don't have much use. Currently a pretty mediocre way I'm doing this is running supervised attribute selection in Weka using the ...
I've fitted 16 logistic regression models to my data and I'm not sure as to which model to choose as my final model. I looked at a couple of things to help me choose my final model. 1) significance of the predictor variables 2) AIC and BIC 3) area under the ROC curve 4) cross validation error. A model with low AIC or B...
I have a dataset composed by 5000 observations. Each observation contains the income per year of a person (from 50 to 50.000.000) and the fact of having a car (yes/no). I would like to check if a correlation exists between these two features. Which test I should run? thanks in advance
I am working on a document classification problem. I am using the typical vector space model to represent a document as doc-term vector. If document has some term, the vector entry for that term is 1. But with the training data, I can get a piece of information which I think may be useful. It is the term popularity wi...
I have a question about outlier detection in my system. I’m designing a system (in Matlab) that optimize both features and parameters of a classification method (like mlp) together with optimization algorithms. My input data are financial statement and some these statements have strange and unusual values. (For example...
I am intending to explain the variation in dependent variable Y through a number of ratios that, combined, sum to 1 in each period t Hence, $$ Y_t = \alpha + \beta_i^I * X_t + \epsilon_t $$ Where $X_t$ is a vector of ratios that sum to 1 (say 1/3, 1/6 and 3/6 in t = 1) and $\beta_i^I$ a vector of its beta coefficients...
I'm new to statistics and have to do some research analysis using SPSS. I need to know, what is the purpose of removing outliers? I want to normalize my set of data obtained through a national survey, but there are a few variables that do not show a bell curve even if I have transformed my data. log, ln, sqrt etc. I ha...
Assume we have a linear model Model1 and vcov(Model1) gives the following matrix: (Intercept) latitude sea.distance altitude (Intercept) 28.898100 -23.6439000 -34.1523000 0.50790600 latitude -23.643900 19.7032500 28.4602500 -0.42471450 sea.distance -34.152300 28.4602500 42.4714500 -0...
The data I am using are sales person data. The data contain six independent variables (six vulnerabilities) scored 1-20 and the output is win/loss of the deal. My question is how do we know which variable or combination of variables are affecting the output i.e. win/loss, and what should be the methods or step to come ...
I have a collection of products that could be rated as good or bad. Every product has a grade, that is the sum of "good" votes minus the sum of "bad" votes. These products are also split into two categories. What I want to do is compare both categories and see which category has better product grades. This would be si...
I've fit a system of non-linear ODE to some experimental data using Levemberg-Marquardt. After the algorithm converged, I estimated the Hessian matrix of the system using: $H = (J^TJ)$ The covariance matrix is then the inverse of H: $cov = H^{-1}$ To get an unbiased estimate, I rescaled cov like so: $cov_{scaled} = co...
It is well-known that $Cov(X,Y)=0$ means independence if $(X,Y)$ is bi-normal distributed, would this be true for Student-t distributions? If not, could anyone give an counter-example. Great thanks!
I know that GLS estimators only have exact distributions asymptotically, so the efficiency gains in finite samples are not all that clear. But otherwise, I'm struggling on how to attack this discussion.
I am attempting to estimate a linear model as: $$ y = a +bX +e $$ I have a series of annual returns and I would like to estimate the effect of volatility on losses. My Null hypothesis is that volatility in period $t$ should have no linear relationship with losses in period $t+1$. So in actual fact, my model is: $$ \...
I am trying to use kNN classifier to perform some supervised learning. In order to find the best number of 'k' of kNN, I used cross validation. For example, the following codes load some Matlab standard data and run the cross validation to plot various k values with respect to the cross validation error load ionosphere...
I'm trying to understand how to show the prediction error of a model fit in R using the non-linear least squares function nls. Although there is an argument se.fit=TRUE in thepredict.nls` function, the help explains "At present se.fit and interval are ignored." I'm able to calculate the confidence interval of the fitte...
Asked to compute estimator for the following function, $\theta = \int_0^\infty e^{-x^2}$ which can be solved by transforming the limits to 0 to 1 and solving the following expectation using Monte Carlo, $$ E[1/U \space e^{-1(-1+1/U)^2}]$$ where $U$ is uniformly distributed The estimator is $$\hat\theta = \frac 1N \sum_...
Suppose you have a set of numbers $\{1,2,...,m\}$ where $m \ge 5$ . Now you randomly choose five of those elements with replacement, $\text{a}_1$ ... $\text{a}_5$. What is the distribution of max($\text{a}_1$,$\text{a}_2$,$\text{a}_3$,$\text{a}_4$,$\text{a}_5$)?
I have a data set that consists of 52 weeks of data. I want to find the probability that any 10 weeks of data within the set of 52 weeks is close to the mean of the total 52 weeks. Close meaning whatever measure seems appropriate (whether it is within a standard deviation, or what have you). I assume this is a fairly ...
I am analysing sales data of certain products and need to determine if the demand trend is deterministic fluctuating or deterministic stable or stochastic. How do I do that in R / what approach is usually applied to do so? Quarterly values would be for example: 2424,3030,3207,2943,2631,2863,2711,2837,2839,2876,3075,2...
I'm trying to replicate the results of the first model of this article: Hultman, Lisa, Jacob Kathman, and Megan Shannon. 2013. “United Nations Peacekeeping and Civilian Protection in Civil War.” American Journal of Political Science 57(4): 875–91. Replication material can be found here: http://thedata.harvard.edu/dvn...
We know that $X$, $Y$ are normal does not guarantee $(X, Y)$ is jointly normal. A typical example is: $X=Z$, and $Y=ZU$, where $Z$ standard normal, $P(U=1)=P(U=-1)=1/2$, and $Z, U$ are independent. My question is: what would be a condition for $(X, Y)$ to be jointly normal given that both $X$, and $Y$ are normal?
Say $Z \sim N(\mu, \sigma^2)$. I am trying to figure out what is the variance of $Y = exp(Z)$. The first thing that came to mind was approximate $exp(Z)$ with a second order taylor series, then it boils down to finding the variance of a polynomial. But then what is the covariance term of $(Z, Z^2)$?
Disclaimer: I am a mechanical engineer, not a statistics guy, so I sometimes miss things. Background: I have a copy of "Applied Probability Models with Optimization Applications" by Sheldon M. Ross (link) and I am working through the content, making sure that I understand it. On page 8 it gives the following as an exam...
I have a problem concerning non-independence of data in an experimental economic game. Participants are in groups of three and interact with each of the other two. Each interaction between persons A and B is characterised by two variables, how generous A is to B and how much A reports liking B (and the same for B to A)...
How does hierarchical bayesian modeling incorporate the correlation present between the observed variables (y1,....,yn) Thank you
Suppose I have a very large binary matrix representing $n$ customers and the $m$ products they bought, with $n$ and $m$ both rather large (in the order of millions). The matrix is also pretty sparse. As computing all (or even just the $k$) exact nearest neighbors for every customer is clearly an intractable problem, I'...
I have a relatively simple multivariate response problem that seems to causing me problems with array indexing. I've scraped/rewworked the model program down to the bare essentials and hopefully haven't cut/replaced too much. I hav3 265 total observations, 5 different groups of responses, each with 53 replications. #...
I have the following scenario: trials were conducted where participants were exposed to multiple stimuli during the course of a trial a specific physiological response was continuously recorded during each trial For every set of stimulation phase response data, I would like to apply baseline removal based on the pre...
I'm comparing the performance of two algorihtms $A$ and $B$ based on a metric. For each algorithm, I have $31$ independent samples that represent its performance. This samples are grouped in two sets: $X$ and $Y$ (algoritmh $A$ and algorithm $B$, respectively). For this task, I'm using a Wilcoxon rank-sum test with a ...
In simple linear regression, where the model $$\mathbb{E}(y) = \beta_0 + \beta_1 x$$ is estimated using least squares (and the errors are assumed iid of mean $0$), why is the covariance between the mean response $\bar{y}$ and the estimated slope $\hat{\beta_1}$ equal to zero?
In cognitive psychology, it has been argued that the learning curve of a skill follows the power function, in which the practice of the skill yields progressively smaller decrements in error. I want to test this hypothesis with the data I have, and to do this I need to fit a power law function to the data. I heard that...
Is there a standard approach for testing goodness-of-fit to a probability distribution when the samples are independent but not identically distributed? In other words, given the data $\{\{x_1, y_1\}, \{x_2, y_2\},..., \{x_n, y_n\}\}$ and the candidate density function $f(x;y)$, what is an accepted approach for testing...
I got the following outcome. I am confused with the interpretation. When I consider RSS then model 2 is better than model 1. What does that high p value mean? Does in influence my conclusion?? anova(reg4.3,reg4.4, test="Chisq") Analysis of Variance Table Model 1: Gas ~ Flow * CODin + A + B + C Model 2: Gas ~ Flow *...
I have done a multiple regression analysis of a group of design variables for a system I am analyzing. From this I determined the standardized regression coefficients. All of the variables fall into one of two groups, architectural variables and control variables. I would like to determine the relative importance of...
What is the distribution of the square of a normally distributed random variable $X^2$ with $X\sim N(0,\sigma^2/4)$? I know $\chi^2(1)=Z^2$ is a valid argument for when squaring a standard normal distribution, but what about the case of non-unit variance?
Suppose you've collected data on factors $X_1, X_2, X_3, \ldots X_p$ and you're interested in creating a latent factor score $L = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \ldots \beta_p X_p$ . For instance, these variables might have been part of a regimen of pain testing and you wish to "score" individuals for their over...
This question is about understanding the logistic regression output using R. Here is my sample data frame: Drugpairs AdverseEvent Y N 1 Rebetol + Pegintron Nausea 29 1006 2 Rebetol + Pegintron Anaemia 21 1014 3 Rebetol + Pegintron Vomiting 14 1021 4 Ribavirin + Pegasys ...
First of all, sorry i am new about this and any helps are really welcome. I am reading a reaserch paper where the authors report: Stepwise forward regression (Zar 1996) was used to select the most informative variables, which were included in a multiple (linear) regression model. A 5% significance level was chosen as a...
I want to compare BRT and averaged glm models on test sets by calculating the explained deviance and RMSE. How can I calculate d2 and RMSE from predictions? I use the following functions: gbm1 <- gbm.step(data=ahe2, gbm.x = c(2,4:5,7:9,11),#15 gbm.y = 10, family = ...
Lets say we are looking to estimate the following standard OLS regression: $y_{i} = \beta_{0} + \beta_{1}*X_{i} + \beta_{2}*Z_{i} + \epsilon_{i}$ and that we choose to standardize $X$ as: $X^{*}=((X_{i} - \mu)/ \sigma)$. Suppose we now instead estimate the following regression: $y_{i} = \beta_{0} + \beta^{*}_{1}*X^{...
I am running a moderation analysis using hierarchical linear regression. I have two predictor variables and two moderating variables and I am interested in their interactions to predict an outcome. My analysis includes the four possible interaction terms, but I am only theoretically interested in two - is it ok to leav...
I am using a logistic regression model to predict a binary decision (purchase, don't purchase) based on several independent variables (income, age, education, etc.) for a population of individuals (customers). I have data for individuals from one or more previous time periods, and I want to predict behavior for differ...
I would like to apply one or more data mining techniques to a dataset, in order to see the effect advertising has on sales. I am working from this dataset. It has 36 consecutive entries of monthly data for both sales and advertising - it's very small. I exported the dataset to a ".csv". I deleted the date column, bec...
After taking my first semester stats class I started getting more and more into statistics. Currently I've come across this version of the Pearson Correlation Coefficient. Comparing this formula to the formula presented on Wikipedia shows they're inconsistent. Further, I've seen at least 3 different ways to calculate i...
I am Pradeep pursuing M.tech at S.I.T, Tumkur, India. I have stuck in a problem while implementing Deep Belief Networks for Isolated Word Recognition. The procedure i have adopted is described below, please do help me in analysing the stage where i went wrong. Back-propagation algorithm implementation : The Normal back...
Im analyzing time-series to detect when the y-value is so flat that one can assume there is an underlying factor limiting y from being higher. Is there a methodology or statistical discipline that do this kind of analyis automatically? Im after a name I can put in Google that points me to books, articles etc. In the fi...
I've read the answers in What are "coefficients of linear discriminants" in LDA?, but I still don't understand what coefficients of linear discriminants on output of R means. What is it? (How) Is it related to the decision boundary? nb: my knowledge about LDA can be summed up in this slide. library(ISLR, MASS) train ...
By correlation coefficient, I am referring to Pearson product-moment correlation coefficient here. We all know that correlation doesn't imply causation, but does high correlation coefficient mean anything? The reason I ask this is that if one looks hard enough, one can find all sorts of correlation between any set of d...
I would like to know the exact name of a test for measuring the similarity of 2 noise systems. Assuming m1 being the measurement for system 1 and m2 the measurement for system 2 this test computes S1 = (m1 + m2)/2 and S2 = (m1 - m2)/2. Then it plots S1 vs S2 for each measurement point. Thanks a lot ps no one of the 2 s...
This question is a prolongation of this question: How to interpret coefficients in a Poisson regression? If we follow the (almost) exact same routine, but we add correlation between the variablese treatment and improved (just for the sake of my question, which is interpreting the output), we get: treatment <- facto...
(first of all I simplified my question) Depending on the input info below, I want to create proper excel function in output part. What I require verbally in output part under "status (0 or 1) column" is Depending on the value of "accumulated age", generate 0 (zero) with corresponding probability in input part, else ge...
please help a sociologist struggling to get to grips with R and statistics in general..! I've got a data set with 11 variables. I need to investigate the possible relationships between one of the variables (percentage of smokers in a population) and the rest of them- things like unemployment rate, education level, and ...
The degrees of freedom in a multiple regression equals N−k−1, where k is the number of variables. Does k include dummy variables? For example, I have the model: Y=B1+B2D2+B3D3+B4D4+B5X1+B6X2+B7(D2D3)+B9(D2D4)+B9(D3D4)+B10(D2D3D4)+u (there are 2 X variables and 3 dummies) N=14780 To get the Degrees of Freedom would i u...
Let's assume a probability mass function $P$ on the discrete domain $\{0,...,N\}$ and a density function $f$ and the existence of two real factors $a$ and $b$ so that we have for all numbers $k$ in $\{0,...,N\}$: $$P(k) = a * f(k * b)$$ What can be said about the theoretical / mathematical relationship between $P$ and ...