Displaying 1 result from an estimated 1 matches for "imfdata".
2012 Jun 15
0
MCMCfactanal inquiries
...loads TeachingDemos pkg and allows me to save txts
library(TeachingDemos)
txtStart("imfproject7.txt",commands = TRUE, results = TRUE, append = FALSE)
## calling libraries
library(MCMCpack)
library(foreign)
## opening a data set on the desktop
setwd("C:/Users/haillie/Desktop")
imfdata<- read.csv("imfdata.csv")
##calling libraries
library(reshape)
library(car)
## factanal Code ( 1 dimension with continuous variable)
postimfdata<-MCMCfactanal(~shstaff+shquota+frusanew+trshusnew+frdfgnew+trsheunew+usbanksh+eubanksh,
factors=1, data=imfdata, burnin=20000, mcmc=200...