Files
RPresence/man/occMod_SO_fp.Rd
Jens Laufer 4f637e83b9 initial
2019-07-12 15:19:27 +02:00

84 lines
3.6 KiB
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/occ.mod.so.fp.R
\name{occMod_SO_fp}
\alias{occMod_SO_fp}
\title{Fit static occupancy/single season model}
\usage{
occMod_SO_fp(psi = call(), psi.cov = data$unitcov, p11 = call(),
p11.cov = cbind(data$unitcov, data$survcov), p10 = call(),
p10.cov = cbind(data$unitcov, data$survcov), b = call(),
b.cov = cbind(data$unitcov, data$survcov), modname = NULL,
paoname = NULL, outfile, model = 100, fixed = NULL, initvals = NULL,
data, conf, miscopts = "")
}
\arguments{
\item{psi}{the right-hand side of the formula for the model to fit for occupancy probability.}
\item{psi.cov}{a data frame containing the unit-specific covariates to use for the occupancy
component of the model.}
\item{p11}{the right-hand side of the formula for the model to fit for "sure" detection probability.}
\item{p11.cov}{a data frame containing the survey-specific covariates to use for the detection
component of the model.}
\item{p10}{the right-hand side of the formula for the model to fit for false-positive detection probability.}
\item{p10.cov}{a data frame containing the survey-specific covariates to use for the detection
component of the model.}
\item{b}{the right-hand side of the formula for the model to fit for Pr(detection is "sure")}
\item{b.cov}{a data frame containing the survey-specific covariates to use for the b}
\item{modname}{(optional) a string containing the model name}
\item{paoname}{(optional) a string containing the filename for the temporary PRESENCE data file.}
\item{outfile}{name for output file (use outfile='modname') for outfile named via model name}
\item{model}{the PRESENCE model code. DO NOT CHANGE.}
\item{fixed}{a single-column matrix containing values for real parameters to be fixed at.
\code{rownnames(fixed)} should contain the index of the real parameters to be fixed.}
\item{initvals}{initial values for the beta parameters at which PRESENCE begins the optimisation.
The default values in PRESENCE is 0.}
\item{data}{the \code{pao} data object containing the detection data and other information.}
\item{conf}{level for confidence interval (may be vector valued).}
\item{miscopts}{}
}
\value{
returns a list of class \code{"occMod"} and \code{"soFp"}.
\code{occMod$beta} contains the objects:
\item{psi}{estimated logistic regression coefficients and standard errors for probability of occurrence.}
\item{psi.VC}{variance-covariance matrix for logistic regression coefficients for probability of occurrence.}
\item{p}{estimated logistic regression coefficients and standard errors for probability of detection.}
\item{p.VC}{variance-covariance matrix for logistic regression coefficients for probability of detection.}
\item{VC}{the full variance-covariance matrix for all logistic regression coefficients.}
\code{occMod$real} contains the objects:
\item{psi}{estimated probabilities of occurrence for each sampling unit, along with standard
errors and limits of 95\% confidence interval.}
\item{p}{estimated probabilities of detection for each survey, along with standard errors and
limits of 95\% confidence interval.}
\code{occMod$derived} contains the objects:
\item{psi_c}{estimated probabilities of occurrence given the detection history for each sampling
unit, along with standard errors and limits of 95\% confidence interval. Will be \code{=1} for
any unit where the species was detected at least once.}
}
\description{
This is not intended for direct use, but instead the \code{\link{occMod}} function should be used with \code{type="so.fp"}.
}
\seealso{
\code{\link{occMod}}, \code{pao}
}
\author{
Darryl MacKenzie
}