Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/variableTransformation.R
The variables added to the data frame corresponding to the first
argument of the function are the former inter spike intervals. These variables
are moreover transformed with mkM2U
so that they have an approximately uniform
distribution on their definition domain.
1 
df 
a data frame. This data frame should contain a variable

low 
a numeric, the smallest value of variable 
high 
a numeric, the largest value of variable 
max.order 
a postive integer, the maximal order of the AR model. How many previous inter spike intervals should be used in order to predict the duration of the next interval? 
selfName 
a character string or an integer specifying the
variable of 
... 
additional arguments passed to 
.
When max.order
> 1 the previous inter spike intervals are all
transformed using the "map to uniform" function estimated from the
inter spike intervals at lag 1.
A data frame is returned. In addition to the variables of df the returned data frame contains
a variable est
with the transformed elapsed time since the last
spike of the neuron and i1t
, i2t
,...,i max.order t
, the
transformed previous inter spike intervals.
The returned data frame has also four attributes:
fmla 
a formula suitable for a first argument of, say, 
m2uL 
the function returned by mkM2U transforming the elasped time since the last spike of the neuron. 
m2uI 
the function returned by mkM2U transforming the first former inter spike interval. 
call 
the matched call. 
Christophe Pouzat christophe.pouzat@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  ## Not run:
require(STAR)
data(e060824spont)
DFA < subset(mkGLMdf(e060824spont,0.004,0,59),neuron==1)
DFA < mkAR(DFA, 0, 29, 5, maxiter=200)
head(DFA)
tail(DFA)
ar.fit < gssanova(attr(DFA,"fmla"), data=DFA,family="binomial",seed=20061001)
plot(ar.fit %qp% "est")
plot(ar.fit %qp% "i1t")
plot(ar.fit %qp% "i2t")
plot(ar.fit %qp% "i3t")
plot(ar.fit %qp% "i4t")
plot(ar.fit %qp% "i5t")
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.