vec2df.hist: A vector to data frame converter for 'fitTable'. This one...

Description Usage Arguments Value Examples

Description

A vector to data frame converter for fitTable. This one makes a histogram, and returns a data frame with midpoints and counts.

Usage

1

Arguments

data

[numeric vector] The data to be converted.

Value

[data.frame] Converted data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# prepare sample dataset
fTrans <- system.file ("extdata", "trans-common.tsv", package="soundcorrs")
fData <- system.file ("extdata", "data-capitals.tsv", package="soundcorrs")
tmp.ger <- read.soundcorrs (fData, "German", "ALIGNED.German", fTrans)
tmp.pol <- read.soundcorrs (fData, "Polish", "ALIGNED.Polish", fTrans)
dataset <- merge (tmp.ger, tmp.pol)
# prepare and run fitTable
models <- list (
	"model A" = list (
		formula = "Y ~ a/X",
		start = list (list(a=1))),
	"model B" = list (
		formula = "Y ~ a/(1+exp(1)^X)",
		start = list (list(a=1)))
)
fitTable (models, summary(dataset), 1, vec2df.hist)

soundcorrs documentation built on Nov. 16, 2020, 5:09 p.m.