Displaying 20 results from an estimated 200 matches similar to: "Model.matrix pregunta correcta"
2024 Dec 20
2
Colores diseño matriz
Hola,
Tienes varios ejemplos de cómo hacer esto en esta galería de gráficos,
tanto de R como de Python.
https://r-graph-gallery.com/heatmap.html
Gracias,
Carlos Ortega
www.qualityexcellence.es
El mar, 17 dic 2024 a las 14:38, Javier Marcuzzi (<
javier.ruben.marcuzzi en gmail.com>) escribió:
> Estimados
>
> Estoy pensando en buscar la forma para explicar algo, dentro de la forma
2019 Nov 12
1
postfix + spamassassin + dovecot-lda (with sieve support)
Hello,
I have FreeBSD 12 server with postfix + spamassassin. Old config work
fine.
------ old postfix master.cf
spamfilter unix - n n - - pipe
flags=R user=nobody argv=/usr/local/bin/spamc -e /usr/sbin/sendmail -oi
-f ${sender} ${recipient}
------
I try to add dovecot-lda (with sieve support) as local delivery agent to
postfix config
----------- postfix master.cf
# Spamd filter
spamfilter
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Dear Ron and Bert,
First (and without considering why one would want to do this, e.g.,
adding a start of 1 to the data), the following works for me:
------ snip ------
> library(MASS)
> BoxCoxLambda <- function(z){
+ b <- boxcox(z + 1 ~ 1,
+ lambda = seq(-5, 5, length.out = 101),
+ plotit = FALSE)
+ b$x[which.max(b$y)]
+ }
> mrow <- 500
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Thanks John.
?boxcox says:
*************************
Arguments
object
a formula or fitted model object. Currently only lm and aov objects are handled.
*************************
I read that as saying that
boxcox(lm(z+1 ~ 1),...)
should run without error. But it didn't. And perhaps here's why:
BoxCoxLambda <- function(z){
b <- MASS:::boxcox.lm(lm(z+1 ~ 1), lambda = seq(-5, 5,
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Hi Bert,
On 2023-07-08 3:42 p.m., Bert Gunter wrote:
> Caution: This email may have originated from outside the organization. Please exercise additional caution with any links and attachments.
>
>
> Thanks John.
>
> ?boxcox says:
>
> *************************
> Arguments
>
> object
>
> a formula or fitted model object. Currently only lm and aov objects
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Hi,
Firstly, apologies as I have posted this on community.rstudio.com too.
I want to optimise a Box-Cox transformation on columns of a matrix (ie, a unique lambda for each column). So I wrote a function that includes the call to MASS::boxcox in order that it can be applied to each column easily. Except that I'm getting an error when calling the function. If I just extract a column of the
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Try this for your function:
BoxCoxLambda <- function(z){
y <- z
b <- boxcox(y + 1 ~ 1,lambda = seq(-5, 5, length.out = 61), plotit =
FALSE)
b$x[which.max(b$y)] # best lambda
}
***I think*** (corrections and clarification strongly welcomed!) that `~`
(the formula function) is looking for 'z' in the GlobalEnv, the caller of
apply(), and not finding it. It finds
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
No, I'm afraid I'm wrong. Something went wrong with my R session and gave
me incorrect answers. After restarting, I continued to get the same error
as you did with my supposed "fix." So just ignore what I said and sorry for
the noise.
-- Bert
On Sat, Jul 8, 2023 at 8:28?AM Bert Gunter <bgunter.4567 at gmail.com> wrote:
> Try this for your function:
>
>
2012 Mar 31
2
lm no calcula un coeficiente
Hola,
quiero hacer una regresión lineal
lm(y ~ x * grupo, data =datos)
y: numérica, x: numérica, grupo: factor con dos niveles (1 y 2)
pero no calcula el coeficiente de x:grupo2 a cuenta de una singularidad
Coefficients: (1 not defined because of singularities)
Estimate Std. Error t value Pr(>|t|)
(Intercept) -1.283e+06 2.276e+04 -56.359 < 2e-16 ***
x
2013 Mar 06
1
red SNA
Estimados
Le consulto porque estoy intentando presentar unos datos de alguna forma un
poco distinta, salir un poco de la costumbre.
Primero describo los datos:
Suponiendo una secuencia:
golpe al auto -> torura de vidrio -> rotura de aciento
otro auto
golpe al auto -> -> rotura de aciento , a este por alguna causa no se le
rompio el vidio o esa información es desconocida.
Esta
2004 Feb 25
2
PWM Help
I saw a Help e-mail related to MLE. Does R have a probability weighted method (PWM) estimator function? I can't seem to find anything on PWM, unless my eyes are playing trick on me.
[[alternative HTML version deleted]]
2009 Jul 26
2
More complicated multi-plot layouts?
Hi,
I made the attached picture by mocking up three separate plots sort
of like how I'd like to make a new plot. Hopefully it will get through
to the list.
Is there a way to do this directly using par somehow? Or one of the
other plotting packages? Basically, multiple larger plot above
multiple groups of smaller plots? The smaller plots are just
par(mrow=c(2,3)) things, and I can
2012 Jan 08
2
need help with axis ticks
hi,
i am using par(mrow=c(6,6)) function to get 6x6 plots on one screen. the
problem that i am having is that the axis tick labels are far away from the
ticks and going into previous plots (see attached figure). i need to know
how can i reduce the distance between the ticks and their values (y axis
values).the part of the code that i am using (after reading in the data) to
create the top row is:
2009 Jul 24
2
suggestion for paired t-tests
There's a funny inconsistency in how t.test handles paired=T or paired=F. If x
and y parameters are lists, paired=F works, but paired=T doesn't.
> lg=read.csv("my.csv")
> a = subset(lg, condition=="a")["score"]
> b = subset(lg, condition=="b")["score"]
> t.test(a,b)
> t.test(a,b, paired=TRUE)
Error in `[.data.frame`(y, yok)
2010 Sep 06
0
Resumen de R-help-es, Vol 19, Envío 5
2010/9/6 <r-help-es-request@r-project.org>
> Envíe los mensajes para la lista R-help-es a
> r-help-es@r-project.org
>
> Para subscribirse o anular su subscripción a través de la WEB
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
> O por correo electrónico, enviando un mensaje con el texto "help" en
> el asunto (subject) o en el cuerpo a:
2003 Dec 01
0
No subject
through the guest account.
This is my smb.conf on the linux side:
; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.
;
[global]
workgroup =3D SYAC
guest account =3D winuser
; guest account =3D nobody
keep alive =3D 30
os level =3D 2
kernel oplocks =3D false
; security =3D user
; Uncomment the following, if you want to use an existing
; NT-Server to authenticate users, but
2016 Nov 01
4
Modelo mixto en R
Hola Olivier,
Adjunto los datos.
Manuel
El 31 de octubre de 2016, 3:29, Olivier Nuñez <onunez en unex.es> escribió:
> Manuel,
>
> no estoy seguro de entender el diseño.
> Cada parcela recibe los 4 tratamientos (un tratamiento por subparcela de
> una misma parcela)?
> Las "ocasiones" (supongo que instantes) son los mismos para cada
> parcela*tratamiento?
2013 Feb 13
0
Resumen de R-help-es, Vol 48, Envío 13
Hola Angela, yo tambien he usado la funcion "rarecurve" para crear curvas de rarefacción
Saludos
Gabriel Antonio Trujillo Paucar
Egresado de Biologia - Especialidad de Ecología
Investigador en el Area de Limnología de CORBIDI
997603768
----------------------------------------
> From: r-help-es-request en r-project.org
> Subject: Resumen de R-help-es, Vol 48, Envío 13
> To:
2015 Apr 30
3
Analisis de varianza de un modelo strip strip plot
Genial !! Gracias Carlos, voy a leer la vignette.
A todo esto, alguien se acuerda de esas paginas para buscar paquetes y
funciones de R ? Se que una estaba en CRAN, pero las otras tambien eran
muy buenas porque las use un par de veces, pero no las puedo encontrar
en los mails de la lista.
Saludos y gracias,
eric.
On 30/04/15 09:22, Carlos Ortega wrote:
> Hola,
>
>
2015 Apr 30
2
Analisis de varianza de un modelo strip strip plot
Hola Javier, gracias por contestar tan rapido (tarde en la noche) ...
olvide decir que, obviamente, he revisado la internet buscando y no
encuentro ni siquiera la tabla de analisis de varianza del diseño ...
habia revisado el paquete agricolae porque este trae diseños parecidos
pero no exactamente lo que necesito.
Sigo buscando, muchas gracias,
Eric.
On 29/04/15 22:57,