search for: nafo

Displaying 5 results from an estimated 5 matches for "nafo".

Did you mean: afo
2011 Nov 01
2
Removal/selecting specific rows in a dataframe conditional on 2 columns
...different codes without any success, I am asking your help! I have the following data frame where each row represent a survey unit with the following variables: > names(RV09) [1] "record.t" "trip" "set" "month" "stratum" "NAFO" [7] "unit.area" "time" "dur.set" "distance" "operation" "mean.d" [13] "min.d" "max.d" "temp.d" "slat" "slong" "spp" [19] "num...
2011 Nov 06
1
Deleting rows dataframe in R conditional to “if any of (a specific variable) is equal to”
...t5) if any of the t5$EID is equal (a duplicate) of skate$EID. I was able to get my 'duplicated' dataframe in t5 of all my matching EID as follow: > xx<-skate$EID > t5[match(xx,t5[,26]), ]#gives me a dataframe of all matching EID in skate$EID record.t trip set month stratum NAFO unit.area time dur.set distance 8948 5 896 19 11 221 2J N12 908 15 8 8849 5 895 8 10 766 3O R36 1650 16 8 9289 5 899 1 12 743 3L V26 2052 15 8 9299 5 899 5 12 746...
2009 Apr 30
0
Using predict with glmmPQL
...link) in the following way: p.1<-predict(model1,data.frame(year=as.factor(xv),nafdiv=as.factor(rep(" 3N",length(xv))), duration=1000, cfv=as.factor(rep(106166,length(xv))), hooks=rep(1,length(xv))),type="response",se.fit=T) where model1 standardises catch rate and includes nafo area, year, duration of fishing sets, and vessel (cfv) as explanatory variables with an offset of hooks. To predict the years we had data for, we substituted a vector "xv" of years into predict and specified the values to be used for the other explanatory variables. This seemed to work w...
2012 Apr 05
0
Normalizing linear regression slope to intercept
I am wondering if it possible to normalize the slope of a linear regression to its intercept to allow for valid between-group comparisons. Here is the scenario: I need to compare the slopes of biomass increase among NAFO divisions of Northwest Atlantic cod. However, the initial division biomass is a confounding factor that may influence the slope of the regression model. How can I normalize the slope to the initial biomass of a given division (e.g. 2J3KL)? Normalizing will allow me to compare the slope of one divis...
2012 Mar 25
2
avoiding for loops
I have data that looks like this: > df1 group id 1 red A 2 red B 3 red C 4 blue D 5 blue E 6 blue F I want a list of the groups containing vectors with the ids. I am avoiding subset(), as it is only recommended for interactive use. Here's what I have so far: df1 <- data.frame(group=c("red", "red", "red", "blue",