qmodel: Quadratic model evaluation

Description Usage Arguments Examples

View source: R/radial_bridge.R

Description

Fit quadratic model y=x^2 + x to the data and evaluate how well the model fit the data using adjusted R-Squared, RMSE, number of signals being captured

Usage

1
2
3
4
5
6
7
8
qmodel(data, type = "wildtype", threshold.n = 0.9)

## S3 method for class 'brain'
qmodel(data, type = "wildtype", threshold.n = 0.9)

## S3 method for class 'tbl_brain'
qmodel(tidy_brain, type = "wildtype",
  threshold.n = 0.9)

Arguments

data

a brain image or a tidy brain

type

wild type or mutant type of zebrafish embryo brain

threshold.n

threshld for signal frequency. Any signal with frequency below threshold value is exluded

Examples

1
2
3
4
5
6
brain <- read_h5(download_brains(tempdir(), pattern = "101"))
qmodel(brain)

#If you have already tidied your brain
tidy_brain <- tidy(brain, type = "wildtype", threshold.n = 0.9)
qmodel(tidy_brain)

baumer-lab/cranium documentation built on Nov. 3, 2019, 2:07 p.m.