search for: xcorrei

Displaying 5 results from an estimated 5 matches for "xcorrei".

Did you mean: correo
2011 Jan 17
0
(no subject)
...lt;-matrix(c(1,rho,rho,1),nrow=2,ncol=2)#correlation matrix cormat.chold <- chol(cormat)#choleski transformation of correlation matrix akrox <- cbind(akro,x) ax <- akrox%*%cormat.chold ai <- as.matrix(ax[,1]) pData$alphai<-as.vector(ai) xcorr <- as.matrix(ax[,2:(1+ncol(x))]) pData$xcorrei<-as.vector(xcorr) pData$yi <- 5 + pData$alphai + 5* pData$xcorrei + rnorm(nt) ##########################panel data frame################################## library(plm) pData <- pdata.frame(pData, c("id", "time")) pData I think the panel is correctly generated, but my d...
2011 Jan 17
0
PANEL DATA SIMULATION(sorry for my previous email with no subject)
...lt;-matrix(c(1,rho,rho,1),nrow=2,ncol=2)#correlation matrix cormat.chold <- chol(cormat)#choleski transformation of correlation matrix akrox <- cbind(akro,x) ax <- akrox%*%cormat.chold ai <- as.matrix(ax[,1]) pData$alphai<-as.vector(ai) xcorr <- as.matrix(ax[,2:(1+ncol(x))]) pData$xcorrei<-as.vector(xcorr) pData$yi <- 5 + pData$alphai + 5* pData$xcorrei + rnorm(nt) ##########################panel data frame################################## library(plm) pData <- pdata.frame(pData, c("id", "time")) pData I think the panel is correctly generated, but my d...
2011 Jan 18
0
Need help in a simulation study
...lt;-matrix(c(1,rho,rho,1),nrow=2,ncol=2)#correlation matrix cormat.chold <- chol(cormat)#choleski transformation of correlation matrix akrox <- cbind(akro,x) ax <- akrox%*%cormat.chold ai <- as.matrix(ax[,1]) pData$alphai<-as.vector(ai) xcorr <- as.matrix(ax[,2:(1+ncol(x))]) pData$xcorrei<-as.vector(xcorr) pData$yi <- 5 + pData$alphai + 5* pData$xcorrei + rnorm(nt) ##########################panel data frame################################## library(plm) pData <- pdata.frame(pData, c("id", "time")) pData I think the panel is correctly generated, but my d...
2011 Jan 17
0
PANEL DATA SIMULATION
...cbind(akro,x) ax <- akrox%*%cormat.chold ai <- as.matrix(ax[,1]) pData$alphai<-as.vector(ai) xcorr <- as.matrix(ax[,2:(1+ncol(x))]) pData$xcorrei<-as.vector(xcorr) pData$yi <- 5 + pData$alphai + 5* pData$xcorrei + rnorm(nt) ##########################panel data frame################################## library(plm) pData <- pdata.frame(pData, c("id", "time")) pData I think the panel is correctly generated,...
2011 Jan 25
0
How to simulate a variable Xt=Wit+0.5Wit-1 with
...lt;-matrix(c(1,rho,rho,1),nrow=2,ncol=2)#correlation matrix cormat.chold <- chol(cormat)#choleski transformation of correlation matrix akrox <- cbind(akro,x) ax <- akrox%*%cormat.chold ai <- as.matrix(ax[,1]) pData$alphai<-as.vector(ai) xcorr <- as.matrix(ax[,2:(1+ncol(x))]) pData$xcorrei<-as.vector(xcorr) library(plm) pData<-plm.data(pData, index = c("id", "time")) pData But now i need a variable Xt=Wit+0.5Wit-1 with Wit~U(0,2), the code i Try to use is: for (i in 1:n) { p <- i*t m <- (i-1)*t+1 for (j in m:p){...