Publications by dogle

Mixed Model Example — Wagner et al. (2006)

06.05.2013

I am preparing for a workshop on mixed models and looked at the paper “Accounting for multilevel data structures in fisheries data using mixed models” by Wagner et al. (2006) (PDF available here).  Wagner et al. (2006) used two examples, with the first being simulated fish density data from eight streams, four of which had a barrier and fo...

1422 sym R (2560 sym/1 pcs) 4 img

Creating Catch Data from Individual Length Measurements

06.06.2013

This example has been updated in this post. I came across a “problem” today where I needed to create catch data for individual nets from length measurements made on individual fish in those nets.  In other words, I had data that showed three individual length measurements for Brook Trout, two measurements for Lake Trout, and two measurements...

3039 sym R (788 sym/3 pcs) 4 img

Creating Catch Data from Individual Length Measurements II

26.07.2013

Note that this is largely a repeat of a previous post (except that I have added a few plots at the bottom) as I am experimenting with being able to write posts here directly from R using the knit2wp() function (in the knitR package) and the R markdown language. If successful this will allow my posts with R code to show the results produced, which...

3836 sym R (2276 sym/6 pcs) 8 img

R-Squared for a VBGM

09.08.2013

Recently, a fishR user asked me the following question: After fitting the age-length data into VBGM, I overviewed the results. But I can’t find the coefficient of determination () for the VBGM fitting. Because some reviewer want the the coefficient of determination, I have to show it. In general, the traditional “coefficient of determination�...

2978 sym R (774 sym/6 pcs) 34 img

Multiple Removal Estimates at Once

30.10.2013

A Question Recently, a fishR user asked me the following question: I have recently used the FSA package to calculate Zippin depletion population estimates resulting from 3 pass removals on smaller trout streams. I have currently been doing this the “long way”: ##GRYSUS2012 GRYSUS2012 <- c(31,23,9) a <- removal(GRYSUS2012) summary(a) confint(a...

2301 sym R (2067 sym/9 pcs) 4 img

Merge Relational Dataframes

11.11.2013

A Question Recently, a student, working on her Senior Thesis at Northland College, asked me the following question: Attached is an Excel file with three “important to R” worksheets. The only thing that connects all 3 worksheets is the Lift.ID variable. Is there a way to tell R this so that I don’t have to paste all three worksheets onto one...

3545 sym R (3223 sym/9 pcs) 4 img

A Problem Fitting the von Bertalanffy Growth Model with nls()

19.11.2013

Recently, a fishR user asked me the following (modified) question: I have successfully fit the typical von Bertalanffy growth model to all of my fish. However, when I subset the data by sex and attempt to fit the model separately to males and females I receive an ‘infinity’ and ‘singular gradient’ error. Why does this happen and is there ...

5457 sym R (5215 sym/15 pcs) 24 img

Comparison Among Groups with Francis Parameterization

21.11.2013

In my last post, I suggested that the Francis parameterization of the von Bertalanffy growth model may be used in cases where the typical parameterization did not converge (likely due to issues related to highly correlated parameters and data with lengths that are highly variable within ages and the full curvature of the model is not readily appa...

10341 sym R (2879 sym/19 pcs) 66 img

Reproducible Reporting Example

23.11.2013

I began playing with the screenr software this evening and my first attempt was to create a short video that demonstrates reproducible report writing in RStudio using knitr and LaTeX.  You can see the example at my screenr page (hit Play and view as full screen). p.s., For those on the R police force, I know that I mistakingly called my FSA pac...

836 sym 4 img

Weisberg Growth Model

28.11.2013

A fishR user asked me if I had Weisberg Linear Growth Model (LGM) vignette.  In the past, the Weisberg LGM referred to the fixed-effects models described in Weisberg (1993) and implemented in software that was written in XLISP-STAT and distributed through Minnesota Sea Grant.  [I do, actually, have a vignette that implements that technology in ...

1446 sym 4 img