fit_sex: Fit the models when the female is focal

Description Usage Arguments Value Examples

View source: R/models.R

Description

this function fits the models when the female is focal.

Usage

1
fit_sex(model, fit_method, DF1)

Arguments

model

"full", "nosocial", "nomass", "null" in quotes

fit_method

"PQL" or "PQL/L" in quotes

DF1

dataset to use: diff_sex_sex

Value

a list (fitted model with spaMM)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Not run: 
data(diff_sex_sex)
mod_sex_full_diff_PQL <- fit_sex(fit_method = "PQL",
                                model = "full",
                                DF1 = diff_sex_sex)
mod_sex_full_diff_PQLL <- fit_sex(fit_method = "PQL/L",
                                 model = "full",
                                 DF1 = diff_sex_sex)

mod_sex_nosocial_diff_PQL <-fit_sex(fit_method = "PQL",
                                   model = "nosocial",
                                   DF1 = diff_sex_sex)
mod_sex_nosocial_diff_PQLL <- fit_sex(fit_method = "PQL/L",
                                     model = "nosocial",
                                     DF1 = diff_sex_sex)

mod_sex_nomass_diff_PQL <- fit_sex(fit_method = "PQL",
                                  model = "nomass",
                                  DF1 = diff_sex_sex)
mod_sex_nomass_diff_PQLL <- fit_sex(fit_method = "PQL/L",
                                   model = "nomass",
                                   DF1 = diff_sex_sex)

mod_sex_null_diff_PQL <- fit_sex(fit_method = "PQL",
                                model = "null",
                                DF1 = diff_sex_sex)
mod_sex_null_diff_PQLL <- fit_sex(fit_method = "PQL/L",
                                 model = "null",
                                 DF1 = diff_sex_sex)

## End(Not run)

hyenaproject/vullioud_2018 documentation built on Aug. 4, 2021, 12:01 a.m.