Re: [R] repeating the same variable in formula

2018-12-10 Thread Subirana Cachinero, Isaac
rs > within ` `. > > Isaac. > > -Mensaje original- > De: Rui Barradas [mailto:ruipbarra...@sapo.pt] > Enviado el: lunes, 10 de diciembre de 2018 11:27 > Para: Subirana Cachinero, Isaac; r-help@r-project.org > Asunto: Re: [R] repeating the same variable in formul

Re: [R] repeating the same variable in formula

2018-12-10 Thread peter dalgaard
hin ` `. > > Isaac. > > -Mensaje original- > De: Rui Barradas [mailto:ruipbarra...@sapo.pt] > Enviado el: lunes, 10 de diciembre de 2018 11:27 > Para: Subirana Cachinero, Isaac; r-help@r-project.org > Asunto: Re: [R] repeating the same variable in formula > &g

Re: [R] repeating the same variable in formula

2018-12-10 Thread Subirana Cachinero, Isaac
white spaces or other characters within ` `. Isaac. -Mensaje original- De: Rui Barradas [mailto:ruipbarra...@sapo.pt] Enviado el: lunes, 10 de diciembre de 2018 11:27 Para: Subirana Cachinero, Isaac; r-help@r-project.org Asunto: Re: [R] repeating the same variable in formula Hello, The fo

Re: [R] repeating the same variable in formula

2018-12-10 Thread Rui Barradas
Hello, The formulas y ~ cholesterol + age + age and y ~ cholesterol + age are the same formula. If you want 'age' twice, maybe g <- y ~ cholesterol + I(age + age) attr(terms(g), "term.labels") #[1] "cholesterol" "I(age + age)" Hope this helps, Rui Barradas Às 06:49 de 10/12/2018, Subira