Dear R community,and especially Giovanni Millo,
For my master's thesis i need to simulate a panel data with the fixed
effects correlated with the predicor, so i run the
the following code:
set.seed(1970)
###Panel data simulation with alphai correlated
with xi###
Dear R community,and especially Giovanni Millo,
For my master's thesis i need to simulate a panel data with the fixed
effects correlated with the predicor, so i run the
the following code:
set.seed(1970)
###Panel data simulation with alphai correlated
with xi#
Dear R community,and especially Giovanni Millo,
For my master's thesis i need to simulate a panel data with the fixed effects
correlated with the predicor, so i run the
the following code:
set.seed(1970)
###Panel data simulation with alphai correlated with
xi##
Dear all
I simulate a panel data:
n <- 10
t <- 5
nt <- n*t
pData <- data.frame(id = rep(paste("JohnDoe", 1:n, sep = "."), each =
t),time = rep(1981:1985, n))
rho <-0.99#simulate alphai corelated with the xi
print(rho)
alphai <- rnorm(n,mean=0,sd=1)#alphai simulation
x<- as.matrix(rnorm(n
4 matches
Mail list logo