Displaying 20 results from an estimated 120 matches similar to: "compare two matrices"
2011 Sep 03
2
problem in applying function in data subset (with a level) - using plyr or other alternative are also welcome
Dear R experts.
I might be missing something obvious. I have been trying to fix this problem
for some weeks. Please help.
#data
ped <- c(rep(1, 4), rep(2, 3), rep(3, 3))
y <- rnorm(10, 8, 2)
# variable set 1
M1a <- sample (c(1, 2,3), 10, replace= T)
M1b <- sample (c(1, 2,3), 10, replace= T)
M1aP1 <- sample (c(1, 2,3), 10, replace= T)
M1bP2 <- sample (c(1, 2,3), 10, replace= T)
2014 Mar 17
5
LD50
Quiero comparar varias dosis letales 50% (LD50) usando análisis probit. He
seguido un ejemplo que viene en paquete DRC, pero no obtengo el resultado
esperado. Lo que quiero es saber si las LD50s, son diferentes y si la
diferencias son estadísticamente significativas.
Gracias de antemano.
José Arturo
e-mail. jafarfan@uady.mx <grejon@uady.mx>
e-mail alterno. jafarfan@gmail.com
2002 Apr 15
8
Problem
Hello! If I have a matrix as 1 2
2 3
and I want to change the value 2 in 0, what can I do?
Thank you
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)
2011 May 04
0
Fwd: simple question
Sorry I had typo in previous email,
this typo corrected version:
Dear R experts
I have simple question, please execuse me:
#example data, the real data consists of 20000 pairs of variables
K1 <- c(1,2,1, 1, 1,1); K2 <- c(1, 1,2,2, 1,2); K3 <- c(3, 1, 3, 3, 1, 3)
M1a <- rep( K1, 100); M1b <- rep(K2, 100)
M2a <- rep(K1, 100); M2b <- rep(K1, 100)
M3a <- rep(K1, 100); M3b
2010 Jan 27
1
term.formula error when updating an nls object
Hi,
I'm getting an error that I don't understand when updating an nls
object. Here is a toy example.
dd <- structure(list(Contrast = c(0.00376, 0.03759, 0.12782, 0.25564,
0.50376, 1), Response = c(0.29915, 6.13248, 29.01709, 30.0641,
29.46581, 27.67094)), .Names = c("Contrast", "Response"), class =
"data.frame", row.names = c(NA,
-6L))
m1 <-
2009 Feb 19
4
type III effect from glm()
Hi all,
This could be naivety/stupidity on my part rather than a problem with model output, but here goes....
I have fitted a fairly simple model
m1<-glm(count~siteall+yrs+yrs:district,family=quasipoisson,weights=weight,data=m[x[[i]],])
I want to know if yrs (a continuous variable) has a significant unique effect in the model, so I fit a simplified model with the main effect ommitted...
2006 Jan 19
1
nls profiling with algorithm="port" may violate bounds (PR#8508)
[posted to R-devel, no discussion:
resubmitting it as a bug, just so it gets
logged appropriately]
Sorry to report further difficulties with
nls and profiling and constraints ... the problem
this time (which I didn't check for in my last
round of testing) is that the nls profiler doesn't
seem to respect constraints that have been
set when using the port algorithm.
See test code
2011 Jun 30
0
CCF of two time series pre-whitened using ARIMA
Hi all,
I have two time series that I would like to correlate but as they are
autocorrelated, I am "pre-whitening" them first by fitting ARIMA models,
then correlating their residuals....as described in
https://onlinecourses.science.psu.edu/stat510/?q=node/75
However, http://www.stat.pitt.edu/stoffer/tsa2/Rissues.htm discusses some
issues with ARIMA in R. In particular, for issue 2, if
2009 Mar 17
2
bigglm() results different from glm()
Dear all,
I am using the bigglm package to fit a few GLM's to a large dataset (3
million rows, 6 columns). While trying to fit a Poisson GLM I noticed
that the coefficient estimates were very different from what I obtained
when estimating the model on a smaller dataset using glm(), I wrote a
very basic toy example to compare the results of bigglm() against a
glm() call. Consider the
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
A copy of this question can be found on Cross Validated:
https://stats.stackexchange.com/questions/645362
I am estimating a system of seemingly unrelated regressions (SUR) in R.
Each of the equations has one unique regressor and one common regressor. I
am using `gmm::sysGmm` and am experimenting with different weighting
matrices. I get the same results (point estimates, standard errors and
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
Generally speaking, this sort of detailed statistical question about a
speccial package in R does not get a reply on this general R
programming help list. Instead, I suggest you either email the
maintainer (found by ?maintainer) or ask a question on a relevant R
task view, such as
https://cran.r-project.org/web/views/Econometrics.html . (or any other
that you judge to be more appropriate).
2006 Jan 27
2
lme4_0.995-2/Matrix_0.995-4 upgrade introduces error messages (change management)
I'll address two issues. The first is today's error message and the other is change management for contributed packages on CRAN.
TODAY'S ERROR MESSAGE
I switched from the 0.995-1 versions of lme4 and Matrix to those referenced in the subject line this afternoon. Prior to using these packages on anything else, I applied them to code that 'worked' (provided numerical results
2007 Feb 13
1
lme4/lmer: P-Values from mcmc samples or chi2-tests?
Dear R users,
I have now tried out several options of obtaining p-values for
(quasi)poisson lmer models, including Markov-chain Monte Carlo sampling
and single-term deletions with subsequent chi-square tests (although I
am aware that the latter may be problematic).
However, I encountered several problems that can be classified as
(1) the quasipoisson lmer model does not give p-values when
2006 Jan 17
0
nls profile with port/constraints
Sorry to report further difficulties with
nls and profiling and constraints ... the problem
this time (which I didn't check for in my last
round of testing) is that the nls profiler doesn't
seem to respect constraints that have been
set when using the port algorithm.
See test code below ...
If I can I will try to hack the code, but I will
probably start by redefining my function with
2007 Mar 22
0
Safari 2.0.4 display of raise is incorrect
Using Mac G4 Quicksilver 867mhz Mac OS X 10.4.8 Ruby 1.8.5 and Rails
1.2.2
I''m new to RoR so I cannot quite understand why Safari displays a
raise action this way
RuntimeError
in Admin contactsController#set_contact_postcode
{"action"=>"set_contact_postcode",
"id"=>"2",
2003 Sep 14
5
can not browse the net from local network.
hi list,
i''m new to linux and shorewall. i''m facing a problem to browse the net from
local network.
IF my client machines are connected to firewall via switch, then can not
browse the internet but i can ping any site using fqdn like
(www.google.com).
IF i connect a single pc directly to the firewall using cross-over cable to
the internal interface, then i''m able to
2013 Apr 02
2
R Commander and FactoMineR
Dear Users,
I helped to install R Commander and FactoMineR to one of my collegaues.
He wanted to do an MCA. Selecting three variables and using the default settings results in only one graph, the variables representation, where he gets three points for the three variables (which is totally fine).
Running the code (output of the point-and-click method)
EuTop100.MCA<-EuTop100[,
2012 Mar 28
6
How to get all possible combinations?
Dear all, suppose I have a vector with elements as:
Vec <- c(2,3,4,5,6)
Now I want to have all possible combination of length 3 using those
elements and without any repetition. Like, I want to have 1
possibility like 2-3-4 but not 3-2-4.
Can somebody guide me how to achieve that in R?
Thanks for your help.
2011 Dec 08
2
[OT]: Require suggestions - GSM Gateway <-> Asterisk
Hello,
I am looking for ideas and suggestions. I want to use a 16 port GSM gateway as a trunk for outbound/inbound. I will also have two PSTN phone lines coming into the Asterisk server. All calls will go to an IVR on the Asterisk PBX. Outbound from extensions will route to GSM-GW when the dialed number matches a pattern set in the GSM-GW trunk. And accordingly for the PSTN trunks. But that's
2011 Mar 31
3
Huawei K3765 + Internet + SMS + Telephone
Hello *,
I have an All-In-One intranet server <samba3> and usualy a seperated
<router> as default gateway, which connect me using HSPA to the internet
Now I have installed an Huawai K3765 on my <samba3>, installed "pppd" +
usb-modeswitch and removed the default gateway to <router>.
OK I can continue surfing trough the <router> and <samba3> is