Nothing
***********************************************************
** Title: This is an exercise for formatting R codes. *****
***********************************************************
__________ 1. Load packages and data ____________
library( erer );data( daIns );
2. Create a dataset from the existing one
mydata<- daIns[ ,1:5 ]; head( mydata); names(mydata );str( mydata); summary(mydata);
3. Run a linear model ----------------------------------
result=lm(formula=Y~Injury+HuntYrs+Nonres
+Lspman
,data
= mydata)
summary( result );####This is the main result.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.