I have a data
df <- structure(list(salary = c(32368L, 53174L, 52722L, 53423L, 50602L,
49033L, 24395L, 24395L, 43124L, 23975L, 53174L, 58515L, 56294L,
49033L, 44884L, 53429L, 46574L, 58968L, 53174L, 53627L, 49033L,
54981L, 62530L, 27525L, 24395L, 56884L, 52111L, 44183L, 24967L,
35423L, 41188L, 27525L, 35018L, 44183L, 35423L), experience = c(3L,
10L, 10L, 1L, 5L, 10L, 5L, 6L, 8L, 4L, 4L, 8L, 10L, 10L, 1L,
5L, 8L, 10L, 5L, 10L, 5L, 7L, 10L, 3L, 5L, 10L, 5L, 5L, 6L, 4L,
2L, 3L, 1L, 2L, 1L)), .Names = c("salary", "experience"), class = "data.frame", row.names = c("1",
"2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13",
"14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24",
"25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35"
))
that looks like this:
> head(df)
salary experience
1 32368 3
2 53174 10
3 52722 10
4 53423 1
5 50602 5
6 49033 10
I need to find a statictic law, that can describe the relationship between salary
and experience
. I thought that it's a Quadratic reciprocity, but when I print Scatterplot I didn't see any relationship between this variables. scatterplot
I think I can divide this data and try to see relationship.
But I don't know, how can I do that.