When I am running multinom()
, say Y ~ X1 + X2 + X3
, if for one particular row X1
is NA
(i.e. missing), but Y
, X2
and X3
all have a value, would this entire row be thrown out (like it does in SAS)? How are missing values treated in multinom()
?
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
Here is a simple example (from
?multinom
from thennet
package) to explore the differentna.action
:Intentionally create a
NA
value:Test the 4 different
na.action
:So
na.exclude
generates aNA
in the prediction whilena.omit
omits it entirely.na.pass
andna.fail
will not create the model. Ifna.action
is not specified, this shows the default:You can specify the behaviour
http://www.ats.ucla.edu/stat/r/faq/missing.htm