[R] Using Function

2011-08-02 Thread Silvano
Hi, I have some simple statistics to calculate for a large number of variables. I created a simple function to apply to variables. I would like the variable name to be placed automatically. I tried the following function but is not working. desc = function(x){ media = mean(x, n

[R] using function boot

2010-01-28 Thread COURVOISIER Delphine
Dear R Users, I am trying to use the function boot of the boot package to sample from a dataframe of two character variables (N=1127). Each character variable can take five different values. Here is an example of the data: 1 b95-99.9 d25% 2 b95-99.9 a1% 3 b95-99.9 a1

[R] using function instead of formula in plm

2008-09-12 Thread Erich STRIESSNIG
Hi all, I am trying to use plm to estimate coefficients in a model consisting of a system of equations. So far I used mle2 from the package "bbmle", but now I need to test for autocorrelation and mle2 does not provide for the necessary tests. mle2 needs a 'function' as input that might as well con

[R] using function instead of formula in plm

2008-09-10 Thread sentimental . gentleman
Hi all, I am trying to use plm to estimate coefficients in a model consisting of a system of equations. So far I used mle2 from the package "bbmle", but now I need to test for autocorrelation and mle2 does not provide for the necessary tests. mle2 needs a function as input that might as well co

Re: [R] using function from specific packages

2008-06-03 Thread Gabor Grothendieck
zoo has a namespace and lag.zoo is not exported so zoo:::lag.zoo is how to access it directly. See help(":::") On Tue, Jun 3, 2008 at 4:31 PM, jiho.han <[EMAIL PROTECTED]> wrote: > > hello, useRs- > > i have a function that i wrote myself, for example, lag(x). however, when > i load 'zoo' pack

[R] using function from specific packages

2008-06-03 Thread jiho.han
hello, useRs- i have a function that i wrote myself, for example, lag(x). however, when i load 'zoo' packages and try to lag 'zoo' object, it gave me error. (R try to pass 'zoo' object into my function.) i typed 'lag.zoo' in R, but it can't find it. how can i access 'lag.zoo' function? and in