recruitment.calculation {CTFS} | R Documentation

## Compute Annual Recruitment Rates and Confidence Limits given N, S and Time

### Description

A simple function to calculate recruitment and confidence limits from N1 (number alive at the end of interval), S (number of survivors), and time (time interval). Values can be vectors or scalars.

### Usage

    recruitment.calculation(N1, S, meantimeint)

### Arguments

`N1` | number of trees at the first census
`S` | number of trees that survived to the second census, N - D
`meantimeint` | interval between censuses in years for trees in the first census

### Details

This function is called many times by `recruitment`. It can be used directly but it is primarily intended as an internal function. `N1, S` and `meantimeint` can be single values or vectors. For full details on computation of recruitment rate and confidence limits see `CTFS.recruitment`.

### Value

`recruitment.calculation` returns a dataframe with the following components:

`N1` | number of trees at the first census
`S` | number of trees that survived to the second census, N - D
`R` | number of recruited trees
`rate` | annual recruitment rate
`lowerCI` | lower 95% confidence interval
`upperCI` | upper 95% confidence interval
`meantimeint` | mean number of years between intervals

### Author(s)

Rick Condit, Pamela Hall

### See Also

`CTFS.recruitment`

### Examples

    ## Not run:
    1. Default use of rexcruitment.calculation()

    recruitment.calculation(510, 490, 5)
       N1   S  R        rate     lowerCI    upperCI meantimeint
    1 510 490 20 0.008001067 0.005189957 0.01233286           5

    2. Input values as vectors
    N = c(110, 110, 110)
    S = c(90, 80, 70)
    time = c(5, 5, 5)
    recruitment.calculation(N,S,time)
       N1  S  R       rate    lowerCI    upperCI meantimeint
    1 110 90 20 0.04013414 0.02581525 0.06143132           5
    2 110 80 30 0.06369075 0.04420141 0.09014424           5
    3 110 70 40 0.09039702 0.06561979 0.12211671           5
    ## End(Not run)

[Package CTFS version 1.00 Index]