## Not run:
# ## load e070528spont data set
# data(e070528spont)
# ## make a data frame for gam using a 2 ms bin width
# spontDF <- mkGLMdf(e070528spont,0.002,0,60)
# ## make data frames specific of each neuron
# n1.spontDF <- spontDF[spontDF$neuron=="1",]
# n2.spontDF <- spontDF[spontDF$neuron=="2",]
# n3.spontDF <- spontDF[spontDF$neuron=="3",]
# n4.spontDF <- spontDF[spontDF$neuron=="4",]
# ## save space by removing the now redundant spontDF
# rm(spontDF)
# ## fit neuron 1 using the gam representation of a
# ## renewal process and a binomial model
# n1.spontFit1 <- gam(event ~ s(lN.1,k=25,bs="cr"),data=n1.spontDF,family=binomial())
# ## create a list with the discretized spike times of the 3 other neurons
# preN1 <- list(n2=with(n2.spontDF,event),n3=with(n3.spontDF,event),n4=with(n4.spontDF,event))
# ## generate the report
# reportHTML(n1.spontFit1,"e070528spontN1gFit",neuron="1",neuronEvts=preN1)
# ## End(Not run)
Run the code above in your browser using DataLab