Re: [R] values from a linear model

2007-07-25 Thread Manuele Pesenti
On Tuesday 24 July 2007 12:02:58 Manuele Pesenti wrote:
 Dear R users,
 how can I extrapolate values listed in the summary of an lm model but not
 directly available between object values such as the the standard errors of
 the calculated parameters?

thank you very much for all interesting answer
:)

Manuele



-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


[R] values from a linear model

2007-07-24 Thread Manuele Pesenti
Dear R users,
how can I extrapolate values listed in the summary of an lm model but not 
directly available between object values such as the the standard errors of 
the calculated parameters?

for example I got a model:

mod - lm(Crd ~ 1 + Week, data=data)

and its summary:

 summary(mod)

Call:
lm(formula = Crd ~ 1 + Week, data = data, model = TRUE, y = TRUE)

Residuals:
   Min 1Q Median 3QMax 
-4.299e-03 -1.653e-03  2.628e-05  1.291e-03  5.130e-03 

Coefficients:
 Estimate Std. Error  t value Pr(|t|)
(Intercept) 1.000e+01  3.962e-04 25238.73   2e-16 ***
Week5.038e-04  6.812e-0673.96   2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 

Residual standard error: 0.001966 on 98 degrees of freedom
Multiple R-Squared: 0.9824, Adjusted R-squared: 0.9822 
F-statistic:  5469 on 1 and 98 DF,  p-value:  2.2e-16

I'm interested in values of Std. Error of coefficients...

thank you very much

Best regards
Manuele

-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


[R] hist() Frequancy values

2007-07-18 Thread Manuele Pesenti
I have seen that the hist() function plots an histogram of the frequency but I 
cannot find the value of the object hist that contains theese values... how 
is possible to get out them? 

thank you very mutch
best regards

Manuele


-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


[R] multiple return

2007-06-22 Thread Manuele Pesenti
Dear User,
what's the correct way to obtain a multiple return from a function?

for example creating the simple function:

somma - function (a, b) {
  c - a+b
  return (a, b, c)
}

when I call it, it runs but returns the following output:

 somma(5, 7)
$a
[1] 5

$b
[1] 7

$c
[1] 12

Warning message:
return multi-argomento sono deprecati in: return(a, b, c) 

i.e. multi-return is deprecated...

thanks a lot
best regards
Manuele

-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


Re: [R] extract elements

2007-06-21 Thread Manuele Pesenti
Thank you very much for all the answer!
I found them very usefull

Manuele

-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


[R] add line to data.frame

2007-06-20 Thread Manuele Pesenti
Dear R user,

how can I update a data.frame adding new lines?
I need to create a second data frame from a first one with only some of their 
entrys filtering the value of a specific column... How can I do this?

thankyou very much in advance
best regards
Manuele PEsenti

-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


[R] extract elements

2007-06-20 Thread Manuele Pesenti
Dear R users,
just another little question... are there other ways, I mean more easy to 
write, to obtain the same result I got with:

data[95:length(dati[,1]), ]

where data is a data frame

to extract the last elements starting from a fixed position?

thank you very much

best regards
Manuele PEsenti
-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


[R] question about forward library

2007-05-21 Thread Manuele Pesenti
Dear R User,
I'm a new member of this list, I'm using R language from a short time and I 
would like to ask you something I cannot solve...

I'm using the fwdlm function from the forward library, I'm specially 
interested by the results of Cook's distances: I'd want to know which inputs 
are the cause of peacks in Cook's distances plot; because what I find in 
abscisas axes are the steps in which some (up to 5) input data are introduced 
to estimate a new LMS regression.

can someone help me?

thank you very much in advance
best regards
Manuele Pesenti

-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.


Re: [R] question about forward library

2007-05-21 Thread Manuele Pesenti
I answer about my own question...

On Monday 21 May 2007 12:40, Manuele Pesenti wrote:
 Dear R User,
 I'm a new member of this list, I'm using R language from a short time and I
 would like to ask you something I cannot solve...

 I'm using the fwdlm function from the forward library, I'm specially
 interested by the results of Cook's distances: I'd want to know which
 inputs are the cause of peacks in Cook's distances plot; because what I
 find in abscisas axes are the steps in which some (up to 5) input data are
 introduced to estimate a new LMS regression.

 can someone help me?

in value Unit of an fwdlm oblect you find the progressive number of inputs 
as they appear in the data set passed to fwdlm function, in this way is 
possible to manually assoiate Cook's distances values to inputs value... 
someone has an idea how to do it automatically?

thank you
best regards
Manuele PEsenti


 thank you very much in advance
 best regards
   Manuele Pesenti

-- 
Manuele Pesenti
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mpesenti.polito.it

__
R-help@stat.math.ethz.ch 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.