Visit the Project MOSAIC github page for more information about this package and its development.
Questions tagged [r-mosaic]
28 questions
0
votes
1 answer
problems finding the right parameter value to fit a curve to observations using fitModel
I want to find the value which makes the following function predict the observations contained in the following dataset.
require(mosaic)
d=data.frame(t=c(41.5,44,42.77,47), y=c(230,76.4/60,3.4,1))
fitModel(y~(-(47-t)*I/(35-t)*(1+exp((42.77-t)*I))),
…

Agus camacho
- 868
- 2
- 9
- 24
0
votes
1 answer
mosaic plot with two variables
This time i am struggling with plotting a mosaic plot. I have 9 town districts and in every district individuals were scored health score 1 or health score 2+3. I want to visualise this in a plot but i can't seem to get it to work.
My dataset:
>…

Eonear Black
- 33
- 6
0
votes
1 answer
Using mosaicCalc::D() to differentiate expression giving unexpected result
I am attempting to differentiate the expression -1+3*x^2/1+x^2 with respect to x, but the output is incorrect. The correct output should be:
8x/(1+x^2)^2
#> library(mosaicCalc)
#>
#> l=D(-1+3*x^2/1+x^2 ~x)
#> l
function (x)
8 * x
Edit:
I have used…

marabi
- 3
- 2
0
votes
1 answer
Corrupt raster, while merging multiple raster tiles
I have a around 1000 raster tiles.
I am trying to merge them as a single raster tile.
library(raster)
raster_tile_path <- list.files("file_path", full.names = TRUE,
pattern = ".tif" ))
merge_tile <-…

Ankit Sagar
- 61
- 1
- 8
0
votes
1 answer
Error while adding panel.lmbands to lattice plot in R
I want to add panel.lmbands from mosaic package. I am using the following code
library(lattice)
library(tidyverse)
library(hydroGOF)
library(mosaic)
library(latticeExtra)
summ <- iris %>%
group_by(Species) %>%
summarise(Rsq =…

UseR10085
- 7,120
- 3
- 24
- 54
0
votes
1 answer
R-Mosaic: Is there a mean.n function?
is there a mean.n function (just as in SPSS) in mosaic in R?
I have 3 columns of data (including "NA") and I want a new column to have the means of the 3 data points for each row. How do I do that?

manuel459
- 173
- 1
- 10
0
votes
1 answer
Favstats (R-Mosaic) returns an error due to non numeric variables although variables are only numeric
I am trying to get Favstats to work.
I am using a "normal" Dataset with numeric variables that I have loaded in with:
ALLBUS2018 <- read.csv("~/Desktop/ALLBUS2018.csv", sep="")
When I use Favstats on one of the variables the following…

Hans Schmidt
- 1
- 1
0
votes
1 answer
Having trouble getting 2x2 table Mosaic Plot to display in R-shiny
raw data
I'm creating an Rshiny app that will allow a user to upload some clinical data, and view several different plots, based on the tabs they open. These include a line plot, pie chart, and mosaic plot. I'm able to view the line plot and pie…

nk94
- 11
- 2
0
votes
1 answer
"car" package url out of date
I am trying to follow along in the Statistical Sleuth here to teach myself some regression analysis for my job in machine learning, but when installing the "mosaic" package it requires the "car" package. So I did install.packages(car) but I see that…

Moderat
- 1,462
- 4
- 17
- 21
0
votes
2 answers
Return a data frame using replicate command
The "do" command from the mosaic package nicely returns a data frame by default.
require(mosaic)
require(Sleuth3)
nulldist1 <- do(10)*t.test(Incidents~shuffle(Launch),
…

David
- 981
- 1
- 15
- 27
0
votes
2 answers
generate a random vector with specific number of negative numbers
I'm doing a failure analysis, for which I like to try some different scenarios and some random trials. So far I've done this with the mosaic package and its working out great.
In one specific scenario I want to generate a vector of (semi)random…

user1549537
- 161
- 1
- 5
-1
votes
1 answer
Do anyone know of a conda channel that contain the mosaic package?
Some users have asked me to install the mosaic package (www.mosaic-web.org/mosaic/) in our conda setup, but I cannot r-mosaic anywhere. I do find r-mosaiccore and r-mosaicdata but this is not sufficient according to my users. It is on CRAN, but…

dragz
- 41
- 1
- 7
-3
votes
3 answers
Iris dataset mean() by species
I want to create some mean of sepal.length, but divided by species. Using mosaic package
mean(Sepal.Length~Species)
It didn't work

itsmecevi
- 51
- 9