If I understand you correctly, it sounds like you need to do some reading.

?lm and ?formula tell you how to specify linear models for glm or glmnet.
However, if you do not have sufficient statistical background, It probably
will be incomprehensible, in which case you should consult your local
statistician.

For glmnet, go to the linked references given in the Help file.There is no
such thing as AIC for these models, as they are penalized fits (with users
choosing the penalization tradeoff). Again, consult your local statistician
-- or whoever knows about this sort of thing -- for help if you don't
understand.
Trying to use statistical tools without having sufficient understanding of
the underlying theory (which does NOT mean Brian Ripley level -- that's too
high a bar) is a dangerous enterprise. If this is your situation, get some
help.

-- Bert



On Tue, Oct 25, 2011 at 6:50 AM, julien giami <giami.julien@gmail.com>wrote:

> We are workin on building a logistic regression using
>
> 1. We are doing a logistic regression with binary outcome variable
> using a set of predictors that include 8 continuous and 8 category
> predictors
>
> 2. We are trying to implement interaction between two variables
> (continuous and category or just continuous)
>
> The dataset is 200,000 rows and we are using glmnet, how can we model
> those two points ?
>
> Also how can we obtain the aic of the model ?
>
> Thanks
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

	[[alternative HTML version deleted]]

