Nothing
#this R script demos the basic usage of model fitting and data #imputaiton
#load package and the example dataset
require(NPBayesImpute)
data('NYexample')
#create the model in one step
#CreateModel(X,MCZ,K,Nmiss_Max, alphaa,aplhab)
model <- CreateModel(X,MCZ,50,200000,0.25,0.25)
#to run a model without without structural zeros, set MCZ to NULL, and Nmax to 0
#model <- CreateModel(X,NULL,100,0,0.25,0.25)
#run 100 burns, 1000 mcmc iterations and thinning every 10 #iterations
model$Run(100,1000,100)
#retrieve parameters from the final iteration
result <- model$snapshot
#convert ImputedX matrix to dataframe, using proper factors/names etc.
IX <- GetDataFrame(result$ImputedX,X)
View(IX)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.