Rui Barradas writes:
> Hello,
>
> Package 'compiler' is good at optimizing for loops. Try the following.
>
Or vectorize the function
> system.time(f1(x,10))
user system elapsed
5.010.005.00
> system.time(f1.c(x,10))
user system elapsed
1.920.001.91
> f2 <- func
"Chee Chen" writes:
> Dear All,
> Is there a R package for L1-regression (meaning, optimize the sum of
> absolute deviations, NOT TO BE UNDERSTOOD as regression with
> L1-penalty) ?
Yes.
> Any information will be appreciated.
See
http://cran.cnr.berkeley.edu/web/views/Robust.html
HTH,
t;
> Produces the output:
>
> [1] "derived called"
> [1] "base called"
> [1] "base called"
>
>
> and I was expecting:
>
> [1] "derived called"
> [1] "base called"
>
>
> Thanx in advance,
> Simon Knapp
>
> [[al
djbanana writes:
> Hi,
>
> I think I solved it myself by writing loops.
>
> What I meant is: are there in-built functions in R that calculate the
> following:
>
> a1(b2+...+b190) + a2(b1+b3+...+b190) + ...
Following Rainer's setup:
x <- data.frame( a = sample( 1:10, 4 ), b = sample( 11:20, 4 )
Sam Steingold writes:
> I need an analogue of "uniq -c" for a data frame.
The count.rows() function is the R analogue.
See
http://orgmode.org/worg/org-contrib/babel/examples/Rpackage.html#sec-6-1
No need to install the package - just copy and paste the function into an
R session.
On cases I
e is
something in R to meet your needs.
A post to r-sig-geo might get more helpful responses once you can focus
the question a bit more.
HTH,
Chuck
> Many thanks
>
> Lorenzo
>
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu
other programming languages (like Java)?
>>>
>>> Thanks,
>>> -J
>>>
>>> __
>>> R-help@r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read th
=
>
> Peter Petto
> Lakewood High School Math cell: 440.249.4289
> [[alternative HTML version deleted]]
>
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC Sa
start.
So is rseek.org where 'poisson ridge regression' gives lots of hits. If
you click on 'functions' there is a link to the 'glmnet' package, which
is a solid engine for penalized poisson regression.
HTH,
Chuck
--
Charles C. Berry
log(x1) + x2 * x3
>> newFmla[[3]][[2]]
> log(x1)
>> newFmla[[3]][[2]][[2]]
> x1
>
> So, if you could tell me of a general way to "walk" though a formula
> object, couldn't I use "gsub" or something like that to recognize each
> instance of "x1&qu
to
plot.hclust rather than plot.dendrogram.
Try
plot( dend1, ... )
HTH,
Chuck
>
> Br,
> Luffy
>
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry
o-cut-files-from-any-folder-to-another-folder-tp4577818p4577818.html
> Sent from the R help mailing list archive at Nabble.com.
>
--
Charles C. Berry Dept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.
__
>> 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.
>>
>
t
> of any real use in statistical analysis?
>
> thanks.
> Carl
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
___
f this line:
lapply( as.list( quote(-1-4) ), as.list )
and (thereby) explain why the result of -1-4 isn't 3.
HTH,
Chuck
[rest deleted]
--
Charles C. Berry Dept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
h
'j=TRUE'. Note:
all.equal(
lapply(lapply(x0, '[[', 3), '[', i=2,j=TRUE),
lapply(lapply(x0, '[[', 3), '[', i=2, j=1:2)
)
HTH,
Chuck
> or should I really stick with:
>
> lapply(lapply(x1, '[[', 3), f
f design matrices:
> qr(X1)$rank ## 9
>
> qr(X2)$rank ## 10
>
>
> Will be very grateful if someone could help me here!
>
> Thanks,
>
> Alexandra
>
>
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Why-does-the-order-
.factor(indep) , family = binomial(link =
>>"logit"),na.action = na.pass)
> (Intercept) as.factor(indep)3
> -1.0986-0.2877
>
> Now, exp(-1.0986) = 0. and exp(-1.0986-0.2877) = 0.25.
>
> These are nothing like the previous odds halv
--
> View this message in context:
> http://r.789695.n4.nabble.com/Averaging-within-a-range-of-values-tp4291958p4294061.html
> Sent from the R help mailing list archive at Nabble.com.
>
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucs
is created by bquote().
Replacing
eval(e[[2L]], where)
by
{
e[[1L]] <- as.name("force")
eval(e)
eval(e[[2L]], where)
}
seems to handle this case without breaking example(bquote).
HTH,
Chuck
> Duncan Murdoch
>
--
Charles C. Ber
>> [1] 10233 2
>>> plot(qq.slim)
>>>
>>
>> Choose the digits arg in round to be large enough to allow for points that
>> do not overlap
>> to be seen and small enough to slim down the number of plotted
>> points. In the example above, 1
digits arg in round to be large enough to allow for points that do
not overlap
to be seen and small enough to slim down the number of plotted
points. In the example above, 10233 vs 10.
HTH,
Chuck
--
Charles C. Berry Dept of Family/Preventive Medicine
cberry at ucsd
pairs are not
unique. (e.g. 3.709 is seen in M2, but not M1)
I think the OP was asking for permutations of the non-zero values in
'res', rather than permutations of M1@x.
HTH,
Chuck
>>
>> I don't have experience with sparse matrices, but I was able to get this
>>
generalizations? Are there other tips that
> everybody ought to know?
>
> I understand this is a vague question, perhaps the answers are just in
> the folklore. But if somebody has written them out, I would be glad to
> know.
--
Charles C. Berry Dept of Family/
by ...' and page through the results to find good leads on
this topic.
HTH,
Chuck
>
>> Thank you in advance
>> M
>>
>> --
>>
>> Mohamed Lajnef,IE INSERM U955 eq 15#
>
>
> David Winsemius, MD
> West Hartford, CT
>
--
Charles C. Berry
>
> Terry T
>
--
Charles C. BerryDept of Family/Preventive Medicine
ccberry at ucsd dot edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help
eted]]
>
--
Charles C. BerryDept of Family/Preventive Medicine
cbe...@tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org
27 matches
Mail list logo