Last data update: 2014.03.03

R: Sperm Precedence Data from the Soapberry Bug
soapR Documentation

Sperm Precedence Data from the Soapberry Bug

Description

Offspring counts and proportional paternity by mating order for a breeding experiment of the soapberry bug conducted by SP Carroll (1991).

Usage

data(soap)

Format

A data frame with 18 observations on the following 4 variables.

Female

a numeric vector to identify females.

P2

proportional paternity of the second male.

Total_Offspring

total number of offspring for the female.

No_2nd_Male

number of offspring sired by the second male.

Source

S. P. Carroll (1991) The adaptive significance of mate guarding in the soapberry bug, Jadera haematoloma (Hemiptera: Rhopalidae), Journal of Insect Behavior, 4, 509-530.

Examples

#Fit soapberry bug data to the normal distribution and test goodness of fit.
data(soap)
fit_dist_norm(soap$Total_Offspring)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(ABCp2)
Loading required package: MASS
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ABCp2/soap.Rd_%03d_medium.png", width=480, height=480)
> ### Name: soap
> ### Title: Sperm Precedence Data from the Soapberry Bug
> ### Aliases: soap
> ### Keywords: datasets
> 
> ### ** Examples
> 
> #Fit soapberry bug data to the normal distribution and test goodness of fit.
> data(soap)
> fit_dist_norm(soap$Total_Offspring)
$data_norm
 [1] 117 100 134  98 149 119  51 136 166  97  90 112 139  88 136 154 164  34

$fit_norm
      mean          sd    
  111.611111    31.280343 
 (  7.372848) (  5.213391)

$chi_norm

	Pearson's Chi-squared test

data:  dist and data_norm
X-squared = 288, df = 272, p-value = 0.2415


Warning message:
In chisq.test(dist, data_norm) : Chi-squared approximation may be incorrect
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>