Displaying 20 results from an estimated 1000 matches similar to: "Correct for heteroscedasticity using car package"
2006 Apr 28
1
function for linear regression with White std. errors
I would like to know if there is a function that will run a linear
regression and report the White (heteroscedasticity consistent) std.
errors.
I've found the hccm() function in the car library, but that just gives
me the White covariance matrix. I'd like to be able to see the White
std. errors without having to do much more work, if possible.
Thanks,
Brian
2009 Dec 02
1
Incorporating the results of White's HCCM into a linear regression:
Using hccm() I got a heteroscedasticity correction factor on the diagonal of
the return matrix, but I don't know how to incorporate this into my linear
model:
METHOD 1:
> OLS1 <- lm(formula=uer92~uer+low2+mlo+spec+degree+hit)
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -0.0623377 0.0323461 -1.927 0.057217 .
uer 0.2274742 0.0758720
2017 Aug 16
4
{nlme} Question about modeling Level two heteroscedasticity in HLM
Hello dear uesRs,
I am working on modeling both level one and level two
heteroscedasticity in HLM. In my model, both error variance and
variance of random intercept / random slope are affected by some level
two variables.
I found that nlme is able to model heteroscedasticity. I learned how
to use it for level one heteroscedasticity but don't know how to use
it to model the level
2017 Aug 16
0
{nlme} Question about modeling Level two heteroscedasticity in HLM
If you don't get a response it is because you did not read the Posting Guide which indicates that the R-sig-ME mailing list is where this question would have been on-topic.
--
Sent from my phone. Please excuse my brevity.
On August 16, 2017 6:17:03 AM PDT, b88207001 at ntu.edu.tw wrote:
>Hello dear uesRs,
>
>I am working on modeling both level one and level two
2017 Aug 16
0
{nlme} Question about modeling Level two heteroscedasticity in HLM
A better place for this post would be on R's mixed models list:
r-sig-mixed-models .
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Aug 16, 2017 at 6:17 AM, <b88207001 at ntu.edu.tw> wrote:
> Hello dear
2016 Apr 15
1
Heteroscedasticity in a percent-cover dataset
Hi,
I am currently trying to do a GLMM on a dataset with percent cover of
seagrass (dep. var) and a suite of explanatory variables including algal
(AC) and epiphyte cover (EC), rainfall, temperature and sunshine hours.
M2=glmer(SG~AC+EC+TP+SS+RF+(1|Location/fSi/fTr),
family=binomial,data=data,nAGQ=1)
As the dependent variable is percent cover, I used a binomial error
structure. I also have a
2009 Sep 18
1
some irritation with heteroskedasticity testing
Dear all,
Trying to test for heteroskedasticity I tried several test from the
car package respectively lmtest. Now that they produce rather
different results i am somewhat clueless how to deal with it.
Here is what I did:
1. I plotted fitted.values vs residuals and somewhat intuitively
believe, it isn't really increasing...
2. further I ran the following tests
bptest (studentized
2006 Jan 14
1
lmer and handling heteroscedasticity
Dear altogether,
is it possible to integrate "weights" arguments within lmer to
incorporate statements to handle heteroscedasticity as it is possible
with lme?
I searched the R-archive but found nothing, insofer I assume it is not
possible, but as lmer is under heavy develpoment, maybe something
changed or is solved differently.
Thus my question:
While encountering heavy
2013 Feb 06
1
Heteroscedasticity Plots
To detect heteroscedasticity for a multiple linear OLS regression (no time
dependencies):
What if the residuals vs. fitted values plot shows well behaved residuals
(cloud) - but the some of the x versus residuals plots are a megaphone?
Also, it seems that textbooks and internet tutorials in R do not agree what
is the best plot for detecting heteroscedasticity. What do you use?
I found so
2012 Oct 07
1
Testing volatility cluster (heteroscedasticity) in stock return?
Dear All,
i want to use garch model in return of stock. and the data should presence volatility cluster (Heteroscedasticity).
Do you know how to test volatility cluster (the presence of heteroscedasticity) in series data of stock return in R?
Is it using Langrange Multiplier (LM) ARCH test? what package i should use?
I really need the help. Thanks for the attention.
Eko A P
2006 Feb 21
3
How to get around heteroscedasticity with non-linear leas t squares in R?
Your understanding isn't similar to mine. Mine says robust/resistant
methods are for data with heavy tails, not heteroscedasticity. The common
ways to approach heteroscedasticity are transformation and weighting. The
first is easy and usually quite effective for dose-response data. The
second is not much harder. Both can be done in R with nls().
Andy
From: Quin Wills
>
> I am
2007 Jun 10
1
{nlme} Multilevel estimation heteroscedasticity
Dear All,
I'm trying to model heteroscedasticity using a multilevel model. To
do so, I make use of the nlme package and the weigths-parameter.
Let's say that I hypothesize that the exam score of students
(normexam) is influenced by their score on a standardized LR test
(standLRT). Students are of course nested in "schools". These
variables are contained in the
2009 Feb 10
2
Help regarding White's Heteroscedasticity Correction
Hi
I am actually running the White test for correcting Heteroscedasticity. I
used sandwich() & car(), however the output shows the updated t test of
coefficients, with revised Standard Errors, however the estimates remained
same. My problem is that the residuals formed a pattern in the original
regression equation. After running the White's test, I got some new
standard errors - but
2006 Jul 26
2
Codes; White's heteroscedasticity test and GARCH models
Hello,
I have just recently started using R and was wondering whether anybody had a code written for White's heteroscedasticity correction for standard errors.
Also, can anybody share a code for the GARCH(1,1) and GARCH-in-mean models for modelling regression residuals?
Thanks a lot in advance,
Spyros
---------------------------------
[[alternative HTML version
2008 Jul 22
1
How to simulate heteroscedasticity (correlation)
Hi,
I would like to generate two correlated variables.
I found that funktion for doing that:
a <- rmvnorm(n=10000,mean=c(20,20),sigma=matrix(c(5,0.8*sqrt(50),
0.8*sqrt(50),10),2,2))
(using library(mvtnorm))
Now I also want to generate two correlated variables where the error
variance vary over the variable-correlation.
And I want to plot this for showing heteroscedasticity.
Like shown
2010 Jun 09
1
dealing with heteroscedasticity in lmer: problem with the method weights
Dear lmer users,
The experiment includes 15 groups of (3 males and 1 female). The female is characterized by its quality Q1 and Q2. Each male of a group is characterized by the number of MatingAttempts (with Poisson distribution). I want to examine if male mating attempts depend on female quality. I can see from graphic exploration that the within-group heterogeneity of male attempts increases
2013 Apr 18
1
Statistical test for heteroscedasticity for an object of class "gls"
Hi there,
Does anyone know of a statistical test for heteroscedasticity for an object of class "gls"? (or alternative objective methods).
Thanks in advance,
Ben Gillespie, Research Postgraduate
o-------------------------------------------------------------------o
School of Geography, University of Leeds, Leeds, LS2 9JT
o-------------------------------o
http://www.geog.leeds.ac.uk/
2002 Dec 09
1
heteroscedasticity analysis
Hello,
First, sorry for my poor english, I will try to be understood.
It's the first time I try this "r-help mailing list" and I hope it will be
a success.
I am working on heteroscedasticity analysis. I would like to get the
"Box-Ljung" and the "Lagrange multipliers" test.
I found the first one in the library "ts", but I can't find the second one.
2006 Oct 23
1
Lmer, heteroscedasticity and permutation, need help please
Hi everybody,
I'm trying to analyse a set of data with a non-normal response, 2 fixed
effects and 1 nested random effect with strong heteroscedasticity in the
model.
I planned to use the function lmer : lmer(resp~var1*var2 + (1|rand)) and
then use permutations based on the t-statistic given by lmer to get
p-values.
1/ Is it a correct way to obtain p-values for my variables ? (see below)
2006 Dec 07
1
Heteroscedasticity consistent standard errors for Spatial error models
Hello,
Could anyone please tell me how to estimate Heteroscedasticity
Consistent standard errors for a Spatial error model? All the functions
I have looked at only works for lm objects.
Thank you very much!
- Oshadhi