inst/scripts/trw_nesg.q

ind       <- (trawl$Year == 1 & trawl$Zone == 1 & !is.na(trawl$Depth))
score1    <- trawl$Score1[ind]
depth     <- trawl$Depth[ind]
summary(lm(score1 ~ depth))
sig.trace(sm.regression(depth, score1, 
        model = "no.effect", display="none"), 
        hvec = seq(5, 20, length = 10))

Try the sm package in your browser

Any scripts or data that you put into this service are public.

sm documentation built on July 4, 2022, 5:06 p.m.