standard-error Questions
2
Solved
I'm trying to get Newey-West standard errors to work with the output of pmg() (Mean Groups/Fama-MacBeth estimator) from the plm package.
Following the example from here:
require(foreign)
require(...
Discretion asked 24/10, 2015 at 23:9
8
Solved
Is there any command to find the standard error of the mean in R?
Cristinecristiona asked 20/4, 2010 at 15:49
4
Solved
I have a panel data set in R (time and cross section) and would like to compute standard errors that are clustered by two dimensions, because my residuals are correlated both ways. Googling around ...
Occultation asked 5/12, 2011 at 18:12
1
I am running logistic regressions with a panel data set from survey data and I want to correct the standard errors for the panel design. The weights included in this survey account for sampling pro...
Kit asked 17/5, 2019 at 12:47
2
I am having a problem with my bar chart- the error bars just appear on the corner of the columns of the grouping variable rather than on them in a centralised way. The code I am using is this:
a &...
Fortunna asked 16/2, 2016 at 1:40
2
Solved
I am running a regression with clustered standard errors by year. This is easy to do with Stata but I have to do it with R, so I run it using the lm_robust() function from the estimatr package. The...
Knowall asked 10/7, 2018 at 8:28
2
Solved
Does anyone know how to get stargazer to display clustered SEs for lm models? (And the corresponding F-test?) If possible, I'd like to follow an approach similar to computing heteroskedasticity-rob...
Bermudez asked 17/5, 2017 at 14:19
5
Solved
We got a lm object from and want to extract the standard error
lm_aaa <- lm(aaa ~ x + y + z)
I know the function summary, names and coefficients.
However, summary seems to be the only way to ma...
Macle asked 19/6, 2012 at 10:40
1
I was trying to build Logistic regression model on a sample data.
The output from the model we can get are the weights of features used to build the model.
I could not find Spark API for standard...
Maui asked 14/6, 2016 at 15:49
1
Solved
I am trying to get robust standard errors for a clogit regression from the survival package in R. In doing so, I am trying to replicate the standard errors reported by the Stata clogit command with...
Footgear asked 10/8, 2016 at 11:20
1
I would like to calculate a Heckman selection model manually in R.
My problem is that the standard errors are biased. Is there a way to correct these manually as well?
Below my (sample) code from ...
Dawkins asked 21/8, 2016 at 22:1
1
How can I calculate the standard error for a binary variable using R?
I have a group of participants performing a task across several conditions. The output might be 0 (incorrect) or 1 (correct). I...
Kilovolt asked 26/7, 2016 at 7:35
1
I am estimating Fama-Macbeth regression. I have taken the code from this site
fpmg <- pmg(Mumbo~Jumbo, test, index=c("year","firmid"))
summary(fpmg)
Mean Groups model
Call:...
Nightcap asked 25/5, 2016 at 15:13
2
Solved
I'm trying to run a regression in R's plm package with fixed effects and model = 'within', while having clustered standard errors. Using the Cigar dataset from plm, I'm running:
require(plm)
requ...
Ralphralston asked 15/10, 2015 at 18:13
1
Solved
I am trying to find heteroskedasticity-robust standard errors in R, and most solutions I find are to use the coeftest and sandwich packages. However, when I use those packages, they seem to produce...
Atli asked 3/3, 2015 at 9:37
1
Solved
I am trying to replicate a logit regression from Stata to R. In Stata I use the option "robust" to have the robust standard error (heteroscedasticity-consistent standard error). I am able to replic...
Scarlet asked 8/12, 2014 at 22:13
2
I'm unable to cluster standard errors using R and guidance based on this post. The cl function returns the error:
Error in tapply(x, cluster1, sum) : arguments must have same length
After readin...
Strophic asked 26/4, 2014 at 16:50
2
Solved
I have two categorical factors ('Habitat' and 'Locality'), and one continuous variable (T). 'Habitat' has two level and 'Locality' has eight levels. I want to change the default whiskers to represe...
Nedanedda asked 23/9, 2014 at 16:1
2
I am trying to learn R after using Stata and I must say that I love it. But now I am having some trouble. I am about to do some multiple regressions with Panel Data so I am using the plm package.
...
Timer asked 13/12, 2010 at 21:6
3
I did a glm and I just want to extract the standard errors of each coefficient. I saw on the internet the function se.coef() but it doesn't work, it returns "Error: could not find function "s...
Prune asked 13/12, 2011 at 20:57
2
Solved
my problem is this: I get NA where I should get some values in the computation of robust standard errors.
I am trying to do a fixed effect panel regression with cluster-robust standard errors. Fo...
Joannajoanne asked 21/5, 2012 at 19:26
1
Solved
I would like for a colleague to replicate a first-difference linear panel data model that I am estimating with Stata with the plm package in R (or some other package).
In Stata, xtreg does not hav...
Bat asked 26/9, 2013 at 1:25
3
Solved
I have this array of values:
> df
[1] 2 0 0 2 2 0 0 1 0 1 2 1 0 1 3 0 0 1 1 0 0 0 2 1 2 1 3 1 0 0 0 1 1 2 0 1 3
[38] 1 0 2 1 1 2 2 1 2 2 2 1 1 1 2 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0
[7...
Coulee asked 20/8, 2013 at 17:38
1
Solved
I want to extract the standard errors from a list of logistic regression models.
This is the logistic regression function, designed this way so i can run more than one analysis at once:
glmfunk &...
Haydon asked 24/10, 2012 at 8:0
1
Solved
Does anyone know if there is a package that would run Fama-MacBeth regressions in R and calculate the standard errors? I am aware of the sandwich package and its ability to estimate Newey-West stan...
Outfox asked 5/4, 2012 at 18:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.