Closed BertvanderVeen closed 2 years ago
In my last commit I've changed terminology in the getLV
function in preparation of a different update where I add a type
to the ordiplot
function, corresponding to the same types as in getLV
. Then, for constrained ordination, users will be able to specify which site scores to plot (with the correct prediction intervals). getLV
still defaults to unconstrained LVs for num.lv
, conditional LVs for num.lv.c
, and marginal for num.RR
.
Features
num.lv
), marginal (fixed-effects withnum.RR
ornum.lv.c
), and conditional (including both effects fornum.lv.c
). Also added some documentation on thatCMSEPf
andsdrandom
have a newtype
argument relating to the chosen site scores. By default returns residual fornum.lv
, marginal fornum.RR
and conditional fornum.lv.c
ordiplot
has a newtype
argument, so that it can create plots for all three types of site scores separately with accompanying prediction regions. The type of site scores used is added to the title if that is not specifiedordiplot
to determine the size of site labels and to change the line type of species arrows, if drawnBugfixes
residuals.gllvm
where the lower threshold for the uniform distribution was occasionally higher than the higher threshold if a model fitted poorly. This resulted in inability to calculate residualsnum.RR
andnum.lv.c
in the same model would crash Rsummary.gllvm
whererstruc
was not assigned to the objectgetResidualCov
wherenum.lv.c
should beobject$num.lv.c
ordiplot
ordiplot
with constrained modelprobK[1:y[i,j]] for y[i,j] = 0
wrongly resulted inprobK[1]=probK[0]
)cumsum.b
was used where it should have beencumsum.a
Other
summary
if a (non-balanced, i.e. structured) random-effect is included.