pro: Fit the PRO model

Description Usage Arguments Value Examples

View source: R/pro.R

Description

Fit the PRO model to data. Reference: X Luo, S Gee, V Sohal, D Small (In Press). A Point-process Response Model for Optogenetics Experiments on Neural Circuits. _Statistics in Medicine_.

Usage

1
pro(spike, flash, ...)

Arguments

spike

A binary vector represents spiking (1) or no spiking (0).

flash

A binary vector of the same length of spike, 1 for flashing and 0 for non-flashing.

...

Additional parameters, see model.pro.

Value

a glm object of the fitted PRO coefficients.

Examples

1
2
3
4
5
n <- 500
set.seed(100)
re <- sim.lif(n, rbinom(n, 1, 0.14), 7, 3)
fit.pro <- pro(re$sbin, re$I)
summary(fit.pro)

pro documentation built on May 2, 2019, 10:23 a.m.

Related to pro in pro...