Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

power2grid

Create grid for root search.


Description

Used with unirootGrid

Usage

power2grid(power2 = 3, from = 10, to = 1, dolog = TRUE)
power2gridRatio(power2 = 3)
power2gridDifference(power2 = 3)

Arguments

power2

positive integer, determines length of grid, length(grid)=1+2^power2

from

lowest value of grid

to

highest value of grid

dolog

logical, make grid equally spaced on the log scale?

Details

The function power2gridRatio gives a grid for searching from 0 to Inf equally spaced on the log scale, with about half of the observations from 0.5 to 2. and power2gridDifference gives an equally spaced grid for searching from -1 to 1.

Value

a vector for grid search of length 1+2^power2 for use in unirootGrid

See Also

Examples

power2gridRatio(3)
power2gridDifference(3)
power2grid(3,from=-1,to=1,dolog=FALSE)
power2grid(3, from=1,to=9, dolog=FALSE)
power2grid(3, from=1,to=9, dolog=TRUE)

exact2x2

Exact Tests and Confidence Intervals for 2x2 Tables

v1.6.5
GPL-3
Authors
Michael P. Fay [aut, cre], Sally A. Hunsberger [ctb], Martha Nason [ctb], Erin Gabriel [ctb], Keith Lumbard [ctb]
Initial release
2020-08-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.