0
votes
0answers
14 views

Should a poisson regression be carried out with only 3 data points?

I'm trying to test the relationship between the number of adults counted and the percentage heather cover over 3 areas. The data looks like this: Area Cover Count Field1 53.7 216 Field2 19.5 2 ...
0
votes
0answers
22 views

Significance of varibles after stepwise regression

I did stepwise regression with my multiple regression model and using AIC as a measure of fit with the step function in R. Afterwards some variables that the ...
1
vote
0answers
11 views

How to test whether a distribution follows a power law?

I have the data of how many users post how many questions. For example, [UserCount, QuestionCount] [2, 100] [9, 10] [3, 80] ... ... it means each of the 2 users posts 100 ...
0
votes
0answers
24 views

Robust regression in R with robust::lmRob

I am using the lmRob function in R to do my robust regression. In the R documentation of lmRob found here you can set the ...
0
votes
0answers
17 views

R: Fitting a model with periodic, nonlinear and categorical components

Can anyone give me some advice on how to fit a model with linear (some categorical), non-linear and time series components in R? I don't want to use a non-parametric model like a Loess smooth or ...
0
votes
0answers
23 views

Finding rules in a dataframe in R [on hold]

If I have a file like this start end [1,] 1 1 [2,] 2 2 [3,] 4 4 [4,] 5 5 [5,] 7 7 [6,] 8 8 Is it possible to make rules ...
0
votes
0answers
12 views

Cross-sectional SUR in R

Is there a package in R that can estimate panel data with cross-sectional seemingly unrelated regression generalized least squares weights (like in EViews)?
2
votes
1answer
59 views
+200

ARIMA Intervention Transfer Function - How to Visualize the Effect

I have a monthly time series with an intervention and I would like to quantify the effect of this intervention on the outcome. I realize the series is rather short and the effect is not yet concluded. ...
2
votes
0answers
28 views

R GLM verifying performance statistics for validation

I do not want to say my AUC is 0.77 and find out I am overlooking a lot. Below is my code and a two question at the bottom: ...
1
vote
0answers
13 views

which regression model: nested, censored data

I have the following data structures and would like to know your opinion which regression models are most suitable (and available in R) model 1: - 20,000 cases - nested in 500 spatial units (only ...
1
vote
1answer
21 views

ARIMA modeling with more than one Categorical Variable

I am using auto.arima for forecasting. I have more than one categorical variables having more than one level. My questions are : Do I need to do dummy coding ? ...
0
votes
0answers
45 views

Multicollinearity classification regression with R [closed]

I want to do multiple regression, but my explanatory variables are highly correlated with each other. Some are roughly a linear combination of others. To deal with that, I tried to analyse my data ...
1
vote
0answers
33 views

consequences of lagged dependent variables in panel data

I have some elementary problems understanding the consequences of using a lagged dependent variable in my model. I’m trying to form a predictive model for $Y_{i,t+1}$ for $t+1$ to $t+3$ with: ...
-1
votes
0answers
22 views

synthetic replication of a fund using a classification of the univers and a recursive regression [closed]

i m working on a replication of a specific fund i have daily data of this fund, and 20 index to replicate this fund what i aim to is giving this data i want to know what is the starategy of the 5 ...
0
votes
1answer
38 views

Why is there a need to do OLS regression of VECM?

I am trying to use the R package urca. It has functions cajorls and carools, which do OLS regression of restricted and unrestricted VECM respectively. Both functions take in the VECM estimated using ...
0
votes
1answer
30 views

R - Analyzing Relationship Between Two (or more) Binary Variables

Say I have two vectors: Action.Taken = c(0,1,0,0,1,1,0,1,0) Success = c(0,0,0,1,0,1,0,1,0) The first tells me whether or not a specific action was taken in a ...
0
votes
0answers
28 views

Getting full results of regression with bootstrap

I'm doing regression analysis and want to use bootstrap. Since "simpleboot" package in R doesn't return p-value, I've decided to bootstrap manually instead of using package. However, the result I got ...
0
votes
1answer
51 views

Problems with Poisson Regression

I have been studying a linguistic construction (let’s call it C) in a language L1 trying to individuate several factors (...
0
votes
1answer
41 views

How to forecast time-series bounded by [0,1], i.e., forecast relative frequencies?

I am working with time series values which are all in the closed interval [0, 1]; these values represent relative frequencies, i.e., empirical probabilities. I would like to create a model such that ...
1
vote
0answers
23 views

linear regression using heteroskedasticity robust standard errors in R

I want to perform an OLS regression on time series data using heteroskedasticity robust standard erros. So far i can come up with this: ...
1
vote
1answer
31 views

How to get the value of Mean squared error in a linear regression in R

Let a linear regression model obtained by the R function lm would like to know if it is possible to obtain by the Mean Squared Error command. I had the FOLLOWING output of an example ...
3
votes
1answer
29 views

Getting the equation from R's lm when using a product

Similar to this question: How to translate the results from lm() to an equation? in which the top voted answer said how to get the form of an equation from ...
4
votes
2answers
178 views

cubic relationship after linear relationship

Sorry for my title, but I really don't know how to describe this question. I am fitting a linear regression in R now, and I find that there is one parameter showing linear relationship before certain ...
1
vote
0answers
14 views

How to fit two or more datasets with different occurence for regression

I want to run a regression in R with different datasets. The question is whether stock performance (daily log return) is influenced by factors like interest rates (the one set by fed or ECB), size of ...
1
vote
1answer
44 views

Non linear regression in R Exponential curve fitting [on hold]

I am trying to fit an exponential model to some data. The data is: ...
0
votes
0answers
7 views

How can I estimate a weighted linear regression with fixed effects and many groups in R?

I have a data set derived from administrative registers covering the population of a small European country, containing a large number of defined groups (15 000+). For each of these groups I have ...
1
vote
2answers
177 views

Estimate ARMA coefficients through ACF and PACF inspection

I know that this is probably a question that's been asked plenty of times, but i haven't seen an answer that's both accurate and simple. How do you estimate the appropriate forecast model for a time ...
1
vote
0answers
20 views

Linear Regression Using RHadoop (Mapreduce) [migrated]

I'm new to RHadoop and also to RMR... I had an requirement to write a Mapreduce job in R Mapreduce. I have tried writing, but while executing this, it gives an error. I'm trying to read the file from ...
0
votes
1answer
17 views

What is the method for calculating stdres in {MASS}

The documentation for the MASS package does not detail the calculation method for the standardized residuals using stdres(). I ...
1
vote
1answer
103 views

What regression model to use for a binary predictor and continuous outcome

I have a binary variable, $X=\{0,1\}$ and I want to use this variable to predict a continuous outcome variable $y$ What regression model ought I use to estimate the predictive ability of $X$ of $y$? ...
1
vote
0answers
36 views

Identify points significantly outside a regression model

I would like to update my previous question "Methods to determine reliability of measurements using median and median absolute deviation". I have data from biological experiments, that look like ...
4
votes
1answer
54 views

Cumulative Hazard Function where “status” is dependent on “time”

This question is in relation to a dataset I've previously discussed here. I'm trying to determine whether a treatment affects not only the number of visits a patient has to the doctor, but also how ...
1
vote
0answers
22 views

What to Do When a Log-binomial Model's Convergence Fails

There are times when one might want to estimate a prevalence ratio or relative risk, in preference to an odds ratio, for data with binary outcomes - say, if the outcome in question isn't rare, so the ...
0
votes
0answers
22 views

R statistics interpretation [duplicate]

I am learning exploratory statistical testing methods in R. Specifically I am trying to learn single variable linear regression. I was hoping that someone would be able to give an explanation of the ...
1
vote
1answer
43 views

How can I constrain the coefficients from linear regression to sum to a given value (in R)?

I'm trying to do a linear regression in R, however I have the added constraint the coefficients from the linear regression need to sum to a user given value between 0 and 1. (I understand forcing the ...
2
votes
0answers
39 views

Methods to determine reliability of measurements using median and median absolute deviation

I have several datasets containing hundreds of variables, measured at the same time point and with the same method. Some of these variables have been measured more often and assume consistent values. ...
2
votes
1answer
53 views

Interaction effects in big data sets

I'm looking for a method to identify a shortlist of potentially good 2-way interaction terms rather than trying all possible interactions. This question is similarly asked before here but in a more ...
2
votes
0answers
39 views

Help finding method of estimating regression parameters for a given performance

Pardon my ignorance, for I have very basic training in statistics, but have never taken a regression course. I ran an experiment where participants are in one of two conditions (between subjects). ...
0
votes
1answer
41 views

Linear regression on several trials of experiment

Sorry about asking such a basic question. Assuming I have data like this ...
4
votes
3answers
156 views

Is it possible in R (or in general) to force regression coefficients to be a certain sign?

I'm working with some real world data and the regression models are yielding some counterintuitive results. Normally I trust the statistics but in reality some of these things can not be true. The ...
0
votes
0answers
14 views

How do I estimate a prediction interval from a weighted sample?

I have a vector of data with their standard errors: ...
0
votes
0answers
23 views

Calculating influence for PLS with outer loadings and beta coefficient of latent variable

I'm calculating a penalized least squares regression (PLS). Two influence variables are connected to a latent variable. This latent variable has an influence (beta coefficient) of 0.6 on the response ...
6
votes
1answer
224 views

Nonlinear regression

I have some functions of $x$, in the form of $d\sqrt{x}$ or $d\log(x)$ where $d$ is known. I would like to rewrite (approximate is fine) them in the form $a/(1 + bx^c)$, where $a$, $b$ and $c$ are ...
11
votes
1answer
433 views

Why does R's lm() return different coefficient estimates than my textbook?

Background I'm trying to understand the first example in a course on fitting models (so this may seem ludicrously simple). I've done the calculations by hand and they match the example, but when I ...
2
votes
3answers
49 views

what does an actual vs fitted graph tell us?

I am just wondering what we can infer from a graph with x-axis as the actual and y axis as the predicted data?
1
vote
3answers
74 views

Visualize effects of a regression with categorical explanatory variables (3 levels) in R?

Using R, I want to run a linear regression to estimate the abnormal return on days with positive, negative and neutral news (CLASS). I'm a beginner in R, as well as in using regression models! First ...
0
votes
0answers
7 views

Gamma linear regression, errors with two factor interaction. None with three factor

First off, I am aware I have not enough data to be performing a regression with this number of parameters, lets overlook that for now - I'm interested only in why I get an error with one model, and ...
3
votes
1answer
57 views

How do I test whether two regressions lines cross at y = 0?

I have measurements for daily space heating vs daily mean outdoor temperature for two different control strategies. The data is shown here: I have also performed linear regression, of the form: ...
1
vote
1answer
41 views

Interpreting the ANOVA output for hierarchical linear regression

I followed this tutorial to learn Hierarchical Linear Regression (HLR) in R, but couldn't understand how to interpret its sample output of ...
2
votes
0answers
38 views

Understanding R lm function (weighted) – “coefficients not defined due to singularities”

I'm working on generating a weighted linear model in R using the lm function. My dataset has about 1200 observations. My independent variables are a set of 168 ...