Skip to content

Simulating variables with predefined correlation and autocorrelation

2 messages · Tobias Rüttenauer, Amitha Puranik

#
Dear Amitha,

If understand your query correctly, you could also have a look at my preprint on Monte Carlo simulations of different spatial regression models: https://kluedo.ub.uni-kl.de/frontdoor/index/index/docId/5630.

The replication materials are online available (https://github.com/ruettenauer/Reproduction-Material-Spatial-Monte-Carlo-Experiments). The '01_Monte Carlo Simulation Spatial_Program.R' scipt provides a function to set up data with different constellations of autocorrelation. Maybe the code is useful for your purposes as well.

Best,
Tobias


-----Original Message-----
From: R-sig-Geo <r-sig-geo-bounces at r-project.org> On Behalf Of Amitha Puranik
Sent: 22 August 2019 17:19
To: r-sig-geo at r-project.org
Cc: c8a2375d-efb5-2ebe-7b3b-ac966d188f53 at cirad.fr
Subject: Re: [R-sig-Geo] Simulating variables with predefined correlation and autocorrelation

Dear Prof. Bivand,



Thanks a lot for responding and providing the material to read. I will definitely go through your paper and the references cited in it.

I am working on simulating various scenarios where autocorrelation exists in Y or X or both and also in the residuals and compare the model performances on these data. At present I have planned to assign same weights (distance based) for both X and Y. I have found solution to simulate autocorrelated Y based on your response in the link ( https://stat.ethz.ch/pipermail/r-sig-geo/2011-September/012728.html). But I have not found a way to induce autocorrelation in even the independent variables(s). Hence I posted this query. Thanks in advance.

Regards,

Amitha Puranik.
On Thu, Aug 22, 2019 at 7:06 PM Roger Bivand <Roger.Bivand at nhh.no> wrote:

            
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
#
Dear Dr Tobias,

Thanks a lot for sharing the materials. This means a lot!












On Tue, Sep 3, 2019 at 1:05 PM Tobias R?ttenauer <ruettenauer at sowi.uni-kl.de>
wrote: