statOmics / msqrob2

Implementation of the MSqRob analysis of differentially expressed proteins using the Features infrastructure
9 stars 10 forks source link

place holder's within .Statmodel #17

Closed ococrook closed 4 years ago

ococrook commented 4 years ago

in Msqrob, we current have place holders for some slots because the quantities are computed later

e.g.

                    .StatModel(type = type,
                               params = model,
                               varPosterior = as.numeric(NA),
                               dfPosterior = as.numeric(NA))

I am not a fan of

varPosterior = as.numeric(NA)

and seems dangerous.

@lgatto can we leave this slot NULL

That is:

                    .StatModel(type = type,
                               params = model,
                               varPosterior = NULL,
                               dfPosterior = NULL)

or even just empty?